mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
mesa: fix GL_TEXTURE_LUMINANCE_SIZE query
This commit is contained in:
parent
a2b663fe38
commit
5767a677a0
1 changed files with 1 additions and 1 deletions
|
|
@ -819,7 +819,7 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level,
|
|||
*params = 0;
|
||||
else {
|
||||
*params = _mesa_get_format_bits(texFormat, pname);
|
||||
if (img->TexFormat->LuminanceBits == 0) {
|
||||
if (*params == 0) {
|
||||
/* luminance probably stored as rgb texture */
|
||||
*params = MIN2(_mesa_get_format_bits(texFormat, GL_TEXTURE_RED_SIZE),
|
||||
_mesa_get_format_bits(texFormat, GL_TEXTURE_GREEN_SIZE));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue