From: Keith Whitwell Date: Mon, 9 May 2005 17:38:52 +0000 (+0000) Subject: Fallback (rather than fail) on unknown program targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1180fc13db5fba0a3ec95630f520128f628c58ac;p=mesa.git Fallback (rather than fail) on unknown program targets. --- 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 ); } }