summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-14 20:14:30 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-17 10:30:38 +0000
commit95adfb9fec808fff1e72c3feb407be13a96397f9 (patch)
tree24ba2bd8d2387fda98adfa50d567959ad78e0a65
parentb52e4477f81b8ab7e0db6a73a8f1358b88cf3ea0 (diff)
965: fix/hack check for NULL texunit in state upload
-rw-r--r--src/mesa/pipe/i965simple/brw_wm_surface_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/i965simple/brw_wm_surface_state.c b/src/mesa/pipe/i965simple/brw_wm_surface_state.c
index 6e68c4c660b..db8f670970f 100644
--- a/src/mesa/pipe/i965simple/brw_wm_surface_state.c
+++ b/src/mesa/pipe/i965simple/brw_wm_surface_state.c
@@ -237,6 +237,9 @@ static void upload_wm_surfaces(struct brw_context *brw )
for (i = 0; i < BRW_MAX_TEX_UNIT; i++) {
const struct brw_texture *texUnit = brw->attribs.Texture[i];
+ if (texUnit == NULL)
+ continue;
+
/* BRW_NEW_TEXTURE
*/