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

Function ddgr_dx_Close

dd_grwin32/ddgrWin32DX.cpp:76–88  ·  view source on GitHub ↗

Closes DX subsystem

Source from the content-addressed store, hash-verified

74
75// Closes DX subsystem
76void ddgr_dx_Close() {
77 ASSERT(DX_DATA(vidrefs) == 0);
78
79 if (DX_DATA(lpDD)) {
80 DX_DATA(lpDD)->RestoreDisplayMode();
81 DX_DATA(lpDD)->Release();
82 }
83 DX_DATA(lpDD) = NULL;
84 DX_DATA(hPrimaryWnd) = NULL;
85 DX_DATA(init) = false;
86
87 mprintf(0, "DX system closed.\n");
88}
89
90// Initializes the display for use with the DX subsystem.
91bool ddgr_dx_surf_InitVideo(ddgr_surface *sf) {

Callers 1

ddgr_CloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected