summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-03-13 08:43:04 -0600
committerBrian Paul <[email protected]>2013-03-14 18:09:42 -0600
commit2f6970ae970860acaaaa21b2354f6e447faf15bd (patch)
tree66a80f2f101990ed05552ca67e929792665660e0 /src/gallium/state_trackers
parent6a9d7659d68c8678f4e469b15c15ff0f10075746 (diff)
st/osmesa: silence some optimized build warnings
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/osmesa/osmesa.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/osmesa/osmesa.c b/src/gallium/state_trackers/osmesa/osmesa.c
index 35fa3381d04..fdd0eda1996 100644
--- a/src/gallium/state_trackers/osmesa/osmesa.c
+++ b/src/gallium/state_trackers/osmesa/osmesa.c
@@ -352,8 +352,8 @@ osmesa_st_framebuffer_validate(struct st_framebuffer_iface *stfbi,
templat.flags = 0;
for (i = 0; i < count; i++) {
- enum pipe_format format;
- unsigned bind;
+ enum pipe_format format = PIPE_FORMAT_NONE;
+ unsigned bind = 0;
/*
* At this time, we really only need to handle the front-left color
@@ -372,6 +372,10 @@ osmesa_st_framebuffer_validate(struct st_framebuffer_iface *stfbi,
format = osbuffer->visual.accum_format;
bind = PIPE_BIND_RENDER_TARGET;
}
+ else {
+ debug_warning("Unexpected attachment type in "
+ "osmesa_st_framebuffer_validate()");
+ }
templat.format = format;
templat.bind = bind;