mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
gallium: change the conditional which tests for combined Z+stencil buffers
The caller might be requesting 16-bit Z + 8-bit stencil be placed in a PIPE_FORMAT_S8Z24 or PIPE_FORMAT_Z24S8 buffer.
This commit is contained in:
parent
4e4cb02740
commit
5048457372
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ st_create_framebuffer( const __GLcontextModes *visual,
|
|||
_mesa_add_renderbuffer(&stfb->Base, BUFFER_BACK_LEFT, rb);
|
||||
}
|
||||
|
||||
if (visual->depthBits == 24 && visual->stencilBits == 8) {
|
||||
if (depthFormat == stencilFormat && depthFormat != PIPE_FORMAT_NONE) {
|
||||
/* combined depth/stencil buffer */
|
||||
struct gl_renderbuffer *depthStencilRb
|
||||
= st_new_renderbuffer_fb(depthFormat, samples);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue