r300g: Silence uninitialized variable warning.

Fixes this GCC warning.
r300_state_derived.c: In function 'r300_update_derived_state':
r300_state_derived.c:593: warning: 'r' may be used uninitialized in this function
r300_state_derived.c:593: note: 'r' was declared here
This commit is contained in:
Vinson Lee 2010-10-27 09:02:00 -07:00
parent 8ad9d83fdf
commit 3c8106402f
1 changed files with 5 additions and 0 deletions

View File

@ -633,6 +633,11 @@ static uint32_t r300_get_border_color(enum pipe_format format,
((float_to_ubyte(border_swizzled[0]) & 0xff) << 16) |
((float_to_ubyte(border_swizzled[3]) & 0xff) << 24);
break;
default:
assert(0);
r = 0;
break;
}
return r;