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

Function d3d_EndFrame

legacy/renderer/Direct3D.cpp:2383–2393  ·  view source on GitHub ↗

Ends the frame

Source from the content-addressed store, hash-verified

2381
2382// Ends the frame
2383void d3d_EndFrame() {
2384 ASSERT(D3D_frame_started);
2385 HRESULT ddrval;
2386 ddrval = lpD3DDevice->EndScene();
2387 if (ddrval != D3D_OK) {
2388 mprintf(0, "D3D:Failed to end scene!\n%s\n", d3d_ErrorString(ddrval));
2389 return;
2390 }
2391
2392 D3D_frame_started = 0;
2393}
2394// Flips the screen
2395void d3d_Flip() {
2396 HRESULT ddrval;

Callers 1

rend_EndFrameFunction · 0.85

Calls 1

d3d_ErrorStringFunction · 0.85

Tested by

no test coverage detected