r300g/swtcl: fix crash after the draw_vbo merge
authorMarek Olšák <maraeo@gmail.com>
Thu, 29 Jul 2010 17:53:36 +0000 (19:53 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 29 Jul 2010 18:57:17 +0000 (20:57 +0200)
src/gallium/drivers/r300/r300_render.c

index 35d7756584f9ba501d09aad2411934cc20317aad..987fbaf6a4294f6b425f640dcf39202309dd426b 100644 (file)
@@ -665,7 +665,7 @@ static void r300_swtcl_draw_vbo(struct pipe_context* pipe,
 {
     struct r300_context* r300 = r300_context(pipe);
     struct pipe_transfer *vb_transfer[PIPE_MAX_ATTRIBS];
-    struct pipe_transfer *ib_transfer;
+    struct pipe_transfer *ib_transfer = NULL;
     unsigned count = info->count;
     int i;
     void* indices = NULL;