diff options
author | Ian Romanick <[email protected]> | 2012-01-02 17:44:31 -0800 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-01-03 10:24:10 +0000 |
commit | f433fe015e903424d25673ebfe5dcb115381d753 (patch) | |
tree | a9e4ea319df624d074765348625ca5d8d79684a1 /src/glx/glxextensions.c | |
parent | b518dfb513742984f27577d25566f93afd86d4fc (diff) |
glx: Hack around versions of XCB that lack GLX_ARB_create_context support
A lot of tests in 'make check' will fail under these circumstances,
but at least the build should work.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/glx/glxextensions.c')
-rw-r--r-- | src/glx/glxextensions.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glx/glxextensions.c b/src/glx/glxextensions.c index 73b84dc7fe9..0fcd8a9e8b5 100644 --- a/src/glx/glxextensions.c +++ b/src/glx/glxextensions.c @@ -71,8 +71,13 @@ struct extension_info /* *INDENT-OFF* */ static const struct extension_info known_glx_extensions[] = { +#ifdef XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB { GLX(ARB_create_context), VER(0,0), Y, N, N, N }, { GLX(ARB_create_context_profile), VER(0,0), Y, N, N, N }, +#else + { GLX(ARB_create_context), VER(0,0), N, N, N, N }, + { GLX(ARB_create_context_profile), VER(0,0), N, N, N, N }, +#endif { GLX(ARB_get_proc_address), VER(1,4), Y, N, Y, N }, { GLX(ARB_multisample), VER(1,4), Y, Y, N, N }, { GLX(ATI_pixel_format_float), VER(0,0), N, N, N, N }, @@ -80,7 +85,11 @@ static const struct extension_info known_glx_extensions[] = { { GLX(EXT_visual_info), VER(0,0), Y, Y, N, N }, { GLX(EXT_visual_rating), VER(0,0), Y, Y, N, N }, { GLX(EXT_framebuffer_sRGB), VER(0,0), Y, Y, N, N }, +#ifdef XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB { GLX(EXT_create_context_es2_profile), VER(0,0), Y, N, N, Y }, +#else + { GLX(EXT_create_context_es2_profile), VER(0,0), N, N, N, N }, +#endif { GLX(MESA_copy_sub_buffer), VER(0,0), Y, N, N, N }, { GLX(MESA_multithread_makecurrent),VER(0,0), Y, N, Y, N }, { GLX(MESA_swap_control), VER(0,0), Y, N, N, Y }, |