mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
glx: stop exporting GL functions from libGLX_mesa.so
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33634>
This commit is contained in:
parent
628608672c
commit
71bb62e3c9
2 changed files with 14 additions and 1 deletions
|
|
@ -424,7 +424,20 @@ static const __DRIextension *kopper_extensions_noshm[] = {
|
||||||
static void
|
static void
|
||||||
drisw_wait_gl(struct glx_context *context)
|
drisw_wait_gl(struct glx_context *context)
|
||||||
{
|
{
|
||||||
|
/* TODO: Calling glFinish directly is the only thing that causes libGL.so
|
||||||
|
* to export all GL functions. This is fragile and needs a proper solution.
|
||||||
|
*
|
||||||
|
* On top of that, this code is only compiled with GLX_DIRECT_RENDERING,
|
||||||
|
* which means that indirect-only libGL (-Dglx-direct=false) doesn't export
|
||||||
|
* any GL functions.
|
||||||
|
*
|
||||||
|
* TODO: Always use CALL_Finish instead of glFinish.
|
||||||
|
*/
|
||||||
|
#if USE_LIBGLVND
|
||||||
|
CALL_Finish(GET_DISPATCH(), ());
|
||||||
|
#else
|
||||||
glFinish();
|
glFinish();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
|
|
@ -1678,7 +1678,7 @@ for name in all_functions:
|
||||||
|
|
||||||
function_count = i
|
function_count = i
|
||||||
|
|
||||||
# Exported from libGL.so and libGLX_mesa.so (libEGL_mesa.so doesn't export any)
|
# Exported from libGL.so
|
||||||
libgl_public_functions = {
|
libgl_public_functions = {
|
||||||
"Accum",
|
"Accum",
|
||||||
"ActiveShaderProgram",
|
"ActiveShaderProgram",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue