summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_context.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-02 09:14:53 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-02 09:14:53 -0600
commit43346fb1fb43f91cb3e90d84b442dc08d6c9550d (patch)
treefb7f8a4870946f27496d89c066b81e904ce30b3b /src/mesa/drivers/dri/i965/brw_context.c
parentea190fe05098d166c38d168d6a3d743c3acfe722 (diff)
set ctx->Const.MaxVertexTextureImageUnits = 0
This disallows vertex shader texture sampling. See bugs 16157, 13838.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 33f1bba085..1c7ad5c9c8 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: