projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a9d765
)
st/osmesa: silence some optimized build warnings
author
Brian Paul
<brianp@vmware.com>
Wed, 13 Mar 2013 14:43:04 +0000
(08:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 15 Mar 2013 00:09:42 +0000
(18:09 -0600)
src/gallium/state_trackers/osmesa/osmesa.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/osmesa/osmesa.c
b/src/gallium/state_trackers/osmesa/osmesa.c
index 35fa3381d0453c4c5761a9690e41e4a236ace01c..fdd0eda1996c75d2749410e86fa76deaf4b1f6cf 100644
(file)
--- 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;