From 1180fc13db5fba0a3ec95630f520128f628c58ac Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 9 May 2005 17:38:52 +0000 Subject: Fallback (rather than fail) on unknown program targets. --- src/mesa/drivers/dri/i915/i915_fragprog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 ); } } -- cgit v1.2.3