diff options
author | Christian König <[email protected]> | 2010-10-23 14:01:13 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2010-10-23 14:01:13 +0200 |
commit | de4c2b91f4dd2408422bcbdbf3e9cf3897533e6d (patch) | |
tree | d013261c0959de3018bb5957d336e8fa634acb34 /src/gallium/drivers | |
parent | ba9caba9c8b8d469dbdff677274d574b9051bc45 (diff) |
Fix uninitialized memory problems
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_video_context.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_video_context.c b/src/gallium/drivers/softpipe/sp_video_context.c index 11082109cfc..ff217d66c85 100644 --- a/src/gallium/drivers/softpipe/sp_video_context.c +++ b/src/gallium/drivers/softpipe/sp_video_context.c @@ -348,6 +348,7 @@ init_pipe_state(struct sp_mpeg12_context *ctx) assert(ctx); + memset(&rast, 0, sizeof rast); rast.flatshade = 1; rast.flatshade_first = 0; rast.light_twoside = 0; @@ -378,6 +379,7 @@ init_pipe_state(struct sp_mpeg12_context *ctx) ctx->rast = ctx->pipe->create_rasterizer_state(ctx->pipe, &rast); ctx->pipe->bind_rasterizer_state(ctx->pipe, ctx->rast); + memset(&blend, 0, sizeof blend); blend.independent_blend_enable = 0; blend.rt[0].blend_enable = 0; blend.rt[0].rgb_func = PIPE_BLEND_ADD; @@ -394,6 +396,7 @@ init_pipe_state(struct sp_mpeg12_context *ctx) ctx->blend = ctx->pipe->create_blend_state(ctx->pipe, &blend); ctx->pipe->bind_blend_state(ctx->pipe, ctx->blend); + memset(&dsa, 0, sizeof dsa); dsa.depth.enabled = 0; dsa.depth.writemask = 0; dsa.depth.func = PIPE_FUNC_ALWAYS; |