summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-05-09 17:38:52 +0000
committerKeith Whitwell <[email protected]>2005-05-09 17:38:52 +0000
commit1180fc13db5fba0a3ec95630f520128f628c58ac (patch)
tree0411bffdf249bc4061f470df612dca48fbef5b9b /src/mesa/drivers
parent5c6aec2f39e1c3bbb218ad19b5b475028125105a (diff)
Fallback (rather than fail) on unknown program targets.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i915/i915_fragprog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_fragprog.c b/src/mesa/drivers/dri/i915/i915_fragprog.c
index dae28cb0bcb..962ff45e89a 100644
--- a/src/mesa/drivers/dri/i915/i915_fragprog.c
+++ b/src/mesa/drivers/dri/i915/i915_fragprog.c
@@ -886,10 +886,10 @@ static struct program *i915NewProgram( GLcontext *ctx,
return NULL;
}
- case GL_FRAGMENT_PROGRAM_NV:
default:
- _mesa_problem(ctx, "bad target in _mesa_new_program");
- return NULL;
+ /* Just fallback:
+ */
+ return _mesa_new_program( ctx, target, id );
}
}