https://bugs.freedesktop.org/show_bug.cgi?id=94994
Bug ID: 94994
Summary: OSMesaGetProcAdress always fails on mangled OSMesa
Product: Mesa
Version: 11.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-dev@lists.freedesktop.org
Reporter: frederic.dever...@m4x.org
QA Contact: mesa-dev@lists.freedesktop.org
Created attachment 123027
--> https://bugs.freedesktop.org/attachment.cgi?id=123027&action=edit
patch
OSMesaGetProcAdress on mangled OSMesa checks that the first three characters
are "mgl", but the functions in the table are stored without the leading "m",
thus OSMesaGetProcAddress always returns a dummy function.
The proposed solution is similar to
https://lists.freedesktop.org/archives/mesa-dev/2015-September/095251.html :
If we are on mangled osmesa and the first character is "m", skip it and
proceed.
Thus OSMesaGetProcAddress("mglCreateShader") and
OSMesaGetProcAddress("glCreateShader") return the same thing on mangled OSMesa,
and the former doesn't work on non-mangled OSMesa.
This bug also depends on https://bugs.freedesktop.org/show_bug.cgi?id=91724
(which has a proposed solution)
Plese note that mangled OSMesa is a very useful feature, and may even be
necessary in some situations, as I discussed in
https://bugs.freedesktop.org/show_bug.cgi?id=91724#c4
I provide scripts for building and installing various flavors of OSMesa, as
well as a simple test program that checks the return values of
OSMesaGetProcAddress at: https://github.com/devernay/osmesa-install
Fred (early Mesa contributor, see the Mesa 1.2.1 README!)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev