[PATCH 0/8] Attempt to fix GLX for OSX

Jon TURNEY jon.turney at dronecode.org.uk
Tue Dec 3 14:35:25 PST 2013


On 03/12/2013 20:14, Adam Jackson wrote:
> This fixes up the indirect glx code to only call-by-name those symbols
> present in the Linux OpenGL ABI, which corresponds to OpenGL 1.2.1.
> Since that was available even on OSX 10.0 this should be sufficient for
> xquartz as well.

Thanks very much for doing this.

> Merely proven correct, not tested.  The xwin code assuredly needs
> something similar.  I don't entirely understand the scary-looking comment
> in there about stdcall

The native GL library (opengl32.dll) entry points use the stdcall calling
convention.

I think I'll just need to wire up GetProcAddress to return the address of the
generated cdecl-to-stdcall conversion thunk, rather than directly to
wglGetProcAddress.

> and I'm quite sure the existing code is broken
> for multiple indirect contexts since wglGetProcAddress results are
> context-sensitive unlike GLX.

Yes, we probably assume that wglGetProcAddress results are more general than
they are.

Practically, they seem to be the same provided the context is on the same
display device.



More information about the xorg-devel mailing list