rbug: Silence warning

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by Brian Paul <brianp@vmware.com>
This commit is contained in:
Jakob Bornecrantz 2012-01-09 14:53:42 +01:00
parent 1c17745200
commit c076882fbd
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ rbug_shader_create_locked(struct pipe_context *pipe,
struct tgsi_token *tokens)
{
void *state = NULL;
struct pipe_shader_state pss = { 0 };
struct pipe_shader_state pss;
memset(&pss, 0, sizeof(pss));
pss.tokens = tokens;
switch(rb_shader->type) {