Module: Mesa Branch: master Commit: e07adf1c804d98f4af9f29200d3dad4ea0878741 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e07adf1c804d98f4af9f29200d3dad4ea0878741
Author: Tomasz Lis <[email protected]> Date: Wed Jul 17 13:49:20 2013 +0200 glx: Require proper drawableType in init_fbconfig_for_chooser Make sure that init_fbconfig_for_chooser sets correct value of drawableType for visual configs and fbconfigs. Signed-off-by: Tomasz Lis <[email protected]> Reviewed-by: Ian Romanick <[email protected]> --- src/glx/glxcmds.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 7c66c9b..3b250cc 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -911,12 +911,17 @@ init_fbconfig_for_chooser(struct glx_config * config, config->visualID = (XID) GLX_DONT_CARE; config->visualType = GLX_DONT_CARE; - /* glXChooseFBConfig specifies different defaults for these two than + /* glXChooseFBConfig specifies different defaults for these properties than * glXChooseVisual. */ if (fbconfig_style_tags) { config->rgbMode = GL_TRUE; config->doubleBufferMode = GLX_DONT_CARE; + /* allow any kind of drawable, including those for off-screen buffers */ + config->drawableType = 0; + } else { + /* allow configs which support on-screen drawing */ + config->drawableType = GLX_WINDOW_BIT; } config->visualRating = GLX_DONT_CARE; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
