mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
mesa: add render-to-texture case for MESA_FORMAT_S8_Z24
This commit is contained in:
parent
614f490ca9
commit
26aa870a0d
1 changed files with 5 additions and 0 deletions
|
|
@ -497,6 +497,11 @@ update_wrapper(GLcontext *ctx, const struct gl_renderbuffer_attachment *att)
|
|||
trb->Base.DataType = GL_UNSIGNED_INT_24_8_EXT;
|
||||
trb->Base._BaseFormat = GL_DEPTH_STENCIL;
|
||||
}
|
||||
else if (trb->TexImage->TexFormat == MESA_FORMAT_S8_Z24) {
|
||||
trb->Base.Format = MESA_FORMAT_S8_Z24;
|
||||
trb->Base.DataType = GL_UNSIGNED_INT_24_8_EXT; /* not 8_24 */
|
||||
trb->Base._BaseFormat = GL_DEPTH_STENCIL;
|
||||
}
|
||||
else if (trb->TexImage->TexFormat == MESA_FORMAT_Z16) {
|
||||
trb->Base.Format = MESA_FORMAT_Z16;
|
||||
trb->Base.DataType = GL_UNSIGNED_SHORT;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue