i965g: fix resource creation recursion bug
authorRoland Scheidegger <sroland@vmware.com>
Mon, 10 May 2010 15:42:28 +0000 (17:42 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 10 May 2010 15:42:28 +0000 (17:42 +0200)
src/gallium/drivers/i965/brw_resource.c

index d601f42dd16212223fdd7e27ebba53ff2779bb13..069a12b27f7b78762ded1b8ca9f443a4cd68d044 100644 (file)
@@ -12,7 +12,7 @@ brw_resource_create(struct pipe_screen *screen,
    if (template->target == PIPE_BUFFER)
       return brw_buffer_create(screen, template);
    else
-      return brw_resource_create(screen, template);
+      return brw_texture_create(screen, template);
 
 }