summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_fs.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-03-09 20:01:26 +0100
committerMarek Olšák <[email protected]>2015-03-09 20:58:32 +0100
commit113601086d336b4ba8b378c4df6b557461a26ad6 (patch)
treef430ad73cfb42e0bcb1cc15785e0db5c1005f4fa /src/gallium/drivers/r300/r300_fs.c
parent4815c187b7faf48ebf38ac9efb0ed7b126f2a460 (diff)
r300g: use memset for clearing the shader key
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r--src/gallium/drivers/r300/r300_fs.c3
1 files changed, 2 insertions, 1 deletions
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) {