Created attachment 54524
[PATCH] glapi: fix _glapi_get_proc_addresss
I'm not sure if the patch is completely correct, though there are no piglit regressions.
There is a bug in the 32-bit mesa build, when asm is enabled - glXGetProcAddress returns non-NULL for any string starting with "gl".
In this case the app calls glXGetProcAddress with the incorrect function name, e.g. "glCreateShaderObject", mesa incorrectly returns non-NULL, the app calls it.
Created attachment 54524 get_proc_ addresss
[PATCH] glapi: fix _glapi_
I'm not sure if the patch is completely correct, though there are no piglit regressions.
There is a bug in the 32-bit mesa build, when asm is enabled - glXGetProcAddress returns non-NULL for any string starting with "gl".
In this case the app calls glXGetProcAddress with the incorrect function name, e.g. "glCreateShader Object" , mesa incorrectly returns non-NULL, the app calls it.