aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2013-11-22 19:58:10 -0800
committerFrancisco Jerez <[email protected]>2014-01-15 16:42:08 +0100
commit647344bf3e739c537a97ae54046b6b55cd068721 (patch)
treedf50c443507c3a296371ea015892550cd4e3394c /src/mesa/main/texstate.c
parentace31f4bc05ad35ef42626ecd667a4bbbe044ddc (diff)
mesa: Validate image units when the texture state changes.
Reviewed-by: Chris Forbes <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index ad80dcfaa5c..7720965a8c8 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -35,6 +35,7 @@
#include "context.h"
#include "enums.h"
#include "macros.h"
+#include "shaderimage.h"
#include "texobj.h"
#include "teximage.h"
#include "texstate.h"
@@ -674,6 +675,8 @@ update_texture_state( struct gl_context *ctx )
if (!fprog || !vprog)
update_texgen(ctx);
+
+ _mesa_validate_image_units(ctx);
}