mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 17:00:22 +01:00
This is Sort Of handled by nerfing GL_VERSION in __indirect_glGetString, but that doesn't cover GLES contexts which we also don't have any indirect support for. Xorg's GLX would reject this for us since it has the same limitation, but NVIDIA's GLX seems to interpret a request for ES 2.0 as desktop, despite having the ES2 profile bit set, leading to a very confusing GL_VERSION string and probably not the ES2-compatible context you were hoping for. Since we may now return NULL from indirect_create_context_attribs for reasons other than malloc failure, we need to reasonably handle the case where gc == NULL by the time we get to the XCB call. We rely on the server to generate correct return values in this case, but if it succeeds despite our client-side failure we just throw GLXBadFBConfig (chosen to keep piglit/glx-create-context-core-profile happy, since nothing else seems to hit it). Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7369> |
||
|---|---|---|
| .. | ||
| clientinfo_unittest.cpp | ||
| create_context_unittest.cpp | ||
| dispatch-index-check | ||
| enum_sizes.cpp | ||
| fake_glx_screen.cpp | ||
| fake_glx_screen.h | ||
| indirect_api.cpp | ||
| meson.build | ||
| mock_xdisplay.h | ||
| query_renderer_implementation_unittest.cpp | ||
| query_renderer_unittest.cpp | ||