From 1fc240c6877e44fc9e6d85837dc2d27e26193291 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 15 Jul 2016 13:46:45 +0100 Subject: [PATCH] hw/xwin/glx: publish GLX create_context extensions Future work: To properly support GLX_ARB_create_context in indirect mode, we need to use wglCreateContextAttribsARB() rather than wglCreateContext(), when attribs are provided, rather than just dropping attribs on the floor, as we currently do. That probably entails removing the deferred context creation and instead using a temporary window, as direct WGL does. Signed-off-by: Jon Turney Reviewed-by: Colin Harrison --- hw/xwin/glx/indirect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/xwin/glx/indirect.c b/hw/xwin/glx/indirect.c index 1ab326b46..e9fb3becd 100644 --- a/hw/xwin/glx/indirect.c +++ b/hw/xwin/glx/indirect.c @@ -595,6 +595,10 @@ glxWinScreenProbe(ScreenPtr pScreen) { "WGL_ARB_multisample", "GLX_SGIS_multisample", 0 }, { "WGL_ARB_pixel_format_float", "GLX_ARB_fbconfig_float", 0 }, { "WGL_EXT_pixel_format_packed_float", "GLX_EXT_fbconfig_packed_float", 0 }, + { "WGL_ARB_create_context", "GLX_ARB_create_context", 0 }, + { "WGL_ARB_create_context_profile", "GLX_ARB_create_context_profile", 0 }, + { "WGL_ARB_create_context_robustness", "GLX_ARB_create_context_robustness", 0 }, + { "WGL_EXT_create_context_es2_profile", "GLX_EXT_create_context_es2_profile", 0 }, }; //