965: fix/hack check for NULL texunit in state upload

This commit is contained in:
Keith Whitwell 2007-12-14 20:14:30 +00:00
parent b52e4477f8
commit 95adfb9fec

View file

@ -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
*/