MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / R_ClearCommandChain

Function R_ClearCommandChain

neo/renderer/RenderSystem.cpp:188–193  ·  view source on GitHub ↗

==================== R_ClearCommandChain Called after every buffer submission and by R_ToggleSmpFrame ==================== */

Source from the content-addressed store, hash-verified

186====================
187*/
188void R_ClearCommandChain( void ) {
189 // clear the command chain
190 frameData->cmdHead = frameData->cmdTail = (emptyCommand_t *)R_FrameAlloc( sizeof( *frameData->cmdHead ) );
191 frameData->cmdHead->commandId = RC_NOP;
192 frameData->cmdHead->next = NULL;
193}
194
195/*
196=================

Callers 2

R_ToggleSmpFrameFunction · 0.85
R_IssueRenderCommandsFunction · 0.85

Calls 1

R_FrameAllocFunction · 0.85

Tested by

no test coverage detected