Create OpenGL context with XCB only

I want to create an OpenGL context with only XCB without GLX and Xlib. Could you tell me what might happen. Many thanks.

+4
source share
1 answer

I want to create an OpenGL context with only XCB without GLX and Xlib.

You can not. Period. You need GLX because X11 does OpenGL. And GLX is written against Xlib. The best you can do is use the Xcb GLX module to implement a purely indirect GLX context; restricts you to OpenGL-2.1, although everything should go through the X11 server, instead of the direct context that speaks directly to the GPU.

+6
source

Source: https://habr.com/ru/post/1608778/


All Articles