mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
st/osmesa: silence some optimized build warnings
This commit is contained in:
parent
6a9d7659d6
commit
2f6970ae97
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue