From 95adfb9fec808fff1e72c3feb407be13a96397f9 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 14 Dec 2007 20:14:30 +0000 Subject: [PATCH] 965: fix/hack check for NULL texunit in state upload --- src/mesa/pipe/i965simple/brw_wm_surface_state.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.30.2