set ctx->Const.MaxVertexTextureImageUnits = 0
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 15:14:53 +0000 (09:14 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 2 Jul 2008 15:14:53 +0000 (09:14 -0600)
This disallows vertex shader texture sampling.  See bugs 16157, 13838.

src/mesa/drivers/dri/i965/brw_context.c

index 33f1bba..1c7ad5c 100644 (file)
@@ -125,7 +125,7 @@ GLboolean brwCreateContext( const __GLcontextModes *mesaVis,
    ctx->Const.MaxTextureUnits = BRW_MAX_TEX_UNIT;
    ctx->Const.MaxTextureImageUnits = BRW_MAX_TEX_UNIT;
    ctx->Const.MaxTextureCoordUnits = BRW_MAX_TEX_UNIT;
-
+   ctx->Const.MaxVertexTextureImageUnits = 0; /* no vertex shader textures */
 
    /* Advertise the full hardware capabilities.  The new memory
     * manager should cope much better with overload situations: