summaryrefslogtreecommitdiffstats
path: root/src/glx/x11/glcontextmodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/x11/glcontextmodes.c')
-rw-r--r--src/glx/x11/glcontextmodes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/x11/glcontextmodes.c b/src/glx/x11/glcontextmodes.c
index 79bdce79989..58c548a8fc1 100644
--- a/src/glx/x11/glcontextmodes.c
+++ b/src/glx/x11/glcontextmodes.c
@@ -333,7 +333,8 @@ _gl_get_context_mode_data(const __GLcontextModes *mode, int attribute,
*value_return = mode->bindToTextureRgba;
return 0;
case GLX_BIND_TO_MIPMAP_TEXTURE_EXT:
- *value_return = mode->bindToMipmapTexture;
+ *value_return = mode->bindToMipmapTexture == GL_TRUE ? GL_TRUE :
+ GL_FALSE;
return 0;
case GLX_BIND_TO_TEXTURE_TARGETS_EXT:
*value_return = mode->bindToTextureTargets;