mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
Fixed bogus ENUM_TO_BOOLEAN in
_mesa_GetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS_ARB). Must be ENUM_TO_INT. mesa/progs/tests/texenv now lists supported compressed texture formats correctly.
This commit is contained in:
parent
f1d053b19a
commit
47d18cbb64
1 changed files with 1 additions and 1 deletions
|
|
@ -4769,7 +4769,7 @@ _mesa_GetIntegerv( GLenum pname, GLint *params )
|
|||
GLint formats[100];
|
||||
GLuint i, n = _mesa_get_compressed_formats(ctx, formats);
|
||||
for (i = 0; i < n; i++)
|
||||
params[i] = ENUM_TO_BOOLEAN(formats[i]);
|
||||
params[i] = ENUM_TO_INT(formats[i]);
|
||||
}
|
||||
break;
|
||||
case GL_ARRAY_ELEMENT_LOCK_FIRST_EXT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue