From: Brian Paul Date: Wed, 2 Jul 2008 15:14:53 +0000 (-0600) Subject: set ctx->Const.MaxVertexTextureImageUnits = 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43346fb1fb43f91cb3e90d84b442dc08d6c9550d;p=mesa.git set ctx->Const.MaxVertexTextureImageUnits = 0 This disallows vertex shader texture sampling. See bugs 16157, 13838. --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 33f1bba085b..1c7ad5c9c8f 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -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: