llvmpipe: fix bad patch application
authorKeith Whitwell <keithw@vmware.com>
Wed, 25 Aug 2010 17:01:51 +0000 (18:01 +0100)
committerKeith Whitwell <keithw@vmware.com>
Wed, 25 Aug 2010 17:01:51 +0000 (18:01 +0100)
src/gallium/drivers/llvmpipe/lp_setup.c

index 0c6d2de193c5be0c0afa031a2d467d173c4e1931..9aa6c4bf38ef5eb5de809a2ec46ebf728143900a 100644 (file)
@@ -815,6 +815,10 @@ lp_setup_update_state( struct lp_setup_context *setup )
          for (i = 0; i < Elements(setup->fs.current_tex); i++) {
             if (setup->fs.current_tex[i])
                lp_scene_add_resource_reference(scene, setup->fs.current_tex[i]);
+         }
+      }
+   }
+
    if (setup->dirty & LP_SETUP_NEW_SCISSOR) {
       setup->draw_region = setup->framebuffer;
       if (setup->scissor_test) {
@@ -823,11 +827,6 @@ lp_setup_update_state( struct lp_setup_context *setup )
       }
    }
                                       
-
-         }
-      }
-   }
-
    setup->dirty = 0;
 
    assert(setup->fs.stored);