From 113601086d336b4ba8b378c4df6b557461a26ad6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 9 Mar 2015 20:01:26 +0100 Subject: [PATCH] r300g: use memset for clearing the shader key --- src/gallium/drivers/r300/r300_fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c index 429543a5746..6a96e6720f7 100644 --- a/src/gallium/drivers/r300/r300_fs.c +++ b/src/gallium/drivers/r300/r300_fs.c @@ -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) { -- 2.30.2