src/glx/x11/glxext.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index a039bca..cce54b2 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -477,6 +477,17 @@ __glXInitializeVisualConfigFromTags( __GLcontextModes *config, int count, count -= __GLX_MIN_CONFIG_PROPS; } + + /* Set reasonable defaults for these values in case the server can't be + * bothered to send them. + */ + config->bindToTextureRgb = GL_FALSE; + config->bindToTextureRgba = GL_FALSE; + config->bindToMipmapTexture = GL_FALSE; + config->bindToTextureTargets = GL_FALSE; + config->yInverted = GL_FALSE; + + /* ** Additional properties may be in a list at the end ** of the reply. They are in pairs of property type