mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 12:10:22 +01:00
mesa: check for ARB_framebuffer_object for GL_TEXTURE_STENCIL_SIZE_EXT query
This commit is contained in:
parent
cb0ea416bd
commit
f44638fa61
1 changed files with 2 additions and 1 deletions
|
|
@ -882,7 +882,8 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level,
|
|||
"glGetTexLevelParameter[if]v(pname)");
|
||||
break;
|
||||
case GL_TEXTURE_STENCIL_SIZE_EXT:
|
||||
if (ctx->Extensions.EXT_packed_depth_stencil) {
|
||||
if (ctx->Extensions.EXT_packed_depth_stencil ||
|
||||
ctx->Extensions.ARB_framebuffer_object) {
|
||||
*params = img->TexFormat->StencilBits;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue