r300g: fix missing initializers warning
authorBrian Paul <brianp@vmware.com>
Tue, 22 Feb 2011 19:44:42 +0000 (12:44 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 22 Feb 2011 19:47:18 +0000 (12:47 -0700)
src/gallium/drivers/r300/r300_context.c

index da6b0bb8aa7d02fb9835db7b4d488068449392b2..9f85bd4ce5f0886d4060dc9fc2478ca73d761e1c 100644 (file)
@@ -482,7 +482,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
     }
 
     {
-        struct pipe_resource vb = {};
+        struct pipe_resource vb;
+        memset(&vb, 0, sizeof(vb));
         vb.target = PIPE_BUFFER;
         vb.format = PIPE_FORMAT_R8_UNORM;
         vb.bind = PIPE_BIND_VERTEX_BUFFER;
@@ -495,7 +496,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
     }
 
     {
-        struct pipe_depth_stencil_alpha_state dsa = {};
+        struct pipe_depth_stencil_alpha_state dsa;
+        memset(&dsa, 0, sizeof(dsa));
         dsa.depth.writemask = 1;
 
         r300->dsa_decompress_zmask =