MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / rend_Close

Function rend_Close

renderer/HardwareOpenGL.cpp:1476–1491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1474}
1475
1476void rend_Close(void) {
1477 mprintf(0, "CLOSE:Renderer init is set to %d\n", Renderer_initted);
1478 if (!Renderer_initted)
1479 return;
1480
1481 if (OpenGL_window_initted) {
1482 if (Renderer_type == RENDERER_OPENGL) {
1483 rend_CloseOpenGLWindow();
1484 }
1485 OpenGL_window_initted = 0;
1486 }
1487
1488 opengl_Close();
1489
1490 Renderer_initted = 0;
1491}
1492
1493void gpu_BindTexture(int handle, int map_type, int slot) {
1494 opengl_MakeBitmapCurrent(handle, map_type, slot);

Callers 3

OnReinitOpenglMethod · 0.50
SetScreenModeFunction · 0.50
D3DebugStopHandlerFunction · 0.50

Calls 2

rend_CloseOpenGLWindowFunction · 0.70
opengl_CloseFunction · 0.70

Tested by

no test coverage detected