diff options
author | Dave Miller <davem@davemloft.net> | 2008-08-09 16:45:59 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-08-09 16:45:59 +1000 |
commit | 5968634996c08656a0c5e2fa35705cf7afac87e6 (patch) | |
tree | 37176ccb617f4b1d4decaaed3cfcf2a0f26f6235 | |
parent | 4212599c922373a224d2235c74672a3a3aa8e0b1 (diff) |
glx: fix crash in driGetConfigAttribIndex
Don't access GLboolean via int pointers
-rw-r--r-- | glx/glxdricommon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c index 13725ae73..3285835f0 100644 --- a/glx/glxdricommon.c +++ b/glx/glxdricommon.c @@ -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; |