benilla-re systems structs docs

LoadGlEntryPoints

function · gx · host

Address
0x58c400 · 372 bytes, up to 0x58c573
Signature
void __cdecl (void)
Meaning
Loads the GL and WGL extension entry points once through a hidden window and a temporary context
Confidence
verified, proof one
Finding
gx/opengl#loading-the-entry-points

Finding: Loading the entry points in gx: the OpenGL context and extensions

The first context the backend makes is preceded, once per run, by a probe: a hidden window of class hwacc, the first pixel format of its device context whose flags have 0x4 or 0x20 and neither 0x10 nor 0x40, and a context made current on it. With it current the probe reads the GL extensions and entry points (0x59aff0) and the WGL ones (0x58c580), then deletes the context, the window and the class. The flag 0xc0ed3c is set before anything is tried, so a probe that fails is not repeated.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.