summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw/fs-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/graw/fs-test.c')
-rw-r--r--src/gallium/tests/graw/fs-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/fs-test.c b/src/gallium/tests/graw/fs-test.c
index b237692..e2e7ac8 100644
--- a/src/gallium/tests/graw/fs-test.c
+++ b/src/gallium/tests/graw/fs-test.c
@@ -293,6 +293,7 @@ static void init_tex( void )
tex2d[1][1][3] = 255;
#endif
+ memset(&templat, 0, sizeof(templat));
templat.target = PIPE_TEXTURE_2D;
templat.format = PIPE_FORMAT_B8G8R8A8_UNORM;
templat.width0 = SIZE;
@@ -402,6 +403,7 @@ static void init( void )
if (ctx == NULL)
exit(3);
+ memset(&templat, 0, sizeof(templat));
templat.target = PIPE_TEXTURE_2D;
templat.format = formats[i];
templat.width0 = WIDTH;