CGxDeviceOpenGl::DestroyContext
function · gx · host
- Address
0x58c640· 137 bytes, up to0x58c6c8- Signature
void __thiscall (CGxDeviceOpenGl *this)- Meaning
- Releases the device's context, restores the desktop gamma ramp and releases the device context
- Confidence
- verified, proof one
- Finding
- gx/opengl#context-creation-and-release
Finding: Context creation and release in gx: the OpenGL context and extensions
CGxDeviceOpenGl::DeviceSetFormat(format) logs the format, releases the context, copies the
format, opens the window for it and creates the context. Creation gets the window's device
context, sets the pixel format and makes a context current; with WGL_EXT_swap_control it passes
the format's vertical sync byte, as 0 or 1, to wglSwapIntervalEXT. It then reads the caps, calls
0x58bfd0 and the device's slot +0xc with the format, sets the initial state, flushes the render
states and calls 0x59b890(3). A failed format or context leaves the device without one and returns 0; success uploads the working
gamma ramp. Release restores the saved desktop ramp to the device context before letting it go.
The derivation is in the doc.
Callers 3
- CGxDeviceOpenGl::CreateContext gx
- CGxDeviceOpenGl::HandleWindowEvent gx
- CGxDeviceOpenGl::DeviceSetFormat gx
Callees 7
- 0x58c0f0 gx
- 0x58ea00 gx
- 0x58f020 gx
- ResetExtensionStrings gx
- 0x59e090 gx
- 0x59eed0 gx
- CGxDeviceOpenGl::RecreateTextures gx
Calls and jumps by a bare address, from tables/calls.tsv.