r300g: use memset for clearing the shader key
authorMarek Olšák <marek.olsak@amd.com>
Mon, 9 Mar 2015 19:01:26 +0000 (20:01 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 9 Mar 2015 19:58:32 +0000 (20:58 +0100)
src/gallium/drivers/r300/r300_fs.c

index 429543a57462e324035bb1bd45b8f60f149d1b51..6a96e6720f7e596ac4c9f4dc52f386ee7c74686e 100644 (file)
@@ -564,9 +564,10 @@ static void r300_translate_fragment_shader(
 boolean r300_pick_fragment_shader(struct r300_context* r300)
 {
     struct r300_fragment_shader* fs = r300_fs(r300);
-    struct r300_fragment_program_external_state state = {{{ 0 }}};
+    struct r300_fragment_program_external_state state;
     struct r300_fragment_shader_code* ptr;
 
+    memset(&state, 0, sizeof(state));
     get_external_state(r300, &state);
 
     if (!fs->first) {