Skip to content

GLX: Define the GLX dispatch stubs at compile time

Created by: kbrenneman

This changes the dispatch stubs for GLX functions so that they're defined at compile time and entirely static, instead of having to generate and patch them at runtime like it does now.

Unlike #128, this change does require rewriting the assembly code. Instead of patching the address of the vendor-provided dispatch stub into the generated stubs, the new version will look up the vendor-provided stubs through an array.

It's still much simpler than GLdispatch, since it only needs to use a single global table, not a per-thread table.

Merge request reports