From: Marek Olšák Date: Mon, 9 Mar 2015 19:01:26 +0000 (+0100) Subject: r300g: use memset for clearing the shader key X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=113601086d336b4ba8b378c4df6b557461a26ad6;p=mesa.git r300g: use memset for clearing the shader key --- 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) {