From 5968634996c08656a0c5e2fa35705cf7afac87e6 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Sat, 9 Aug 2008 16:45:59 +1000 Subject: glx: fix crash in driGetConfigAttribIndex Don't access GLboolean via int pointers --- glx/glxdricommon.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'glx/glxdricommon.c') 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; -- cgit v1.2.3