Fallback (rather than fail) on unknown program targets.
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 9 May 2005 17:38:52 +0000 (17:38 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 9 May 2005 17:38:52 +0000 (17:38 +0000)
src/mesa/drivers/dri/i915/i915_fragprog.c

index dae28cb0bcbb0d11e8fcb949ee2d2100238d5e87..962ff45e89a00f74593898db46d8d6826927de1a 100644 (file)
@@ -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 );
    }
 }