mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-01 10:40:08 +01:00
glx: fix crash in driGetConfigAttribIndex
Don't access GLboolean via int pointers
This commit is contained in:
parent
4212599c92
commit
5968634996
1 changed files with 4 additions and 0 deletions
|
|
@ -164,6 +164,10 @@ createModeFromConfig(const __DRIcoreExtension *core,
|
|||
if (value & __DRI_ATTRIB_TEXTURE_RECTANGLE_BIT)
|
||||
config->config.bindToTextureTargets |= GLX_TEXTURE_RECTANGLE_BIT_EXT;
|
||||
break;
|
||||
case __DRI_ATTRIB_FLOAT_MODE:
|
||||
config->config.floatMode = (value ? GL_TRUE : GL_FALSE);
|
||||
break;
|
||||
|
||||
default:
|
||||
setScalar(&config->config, attrib, value);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue