void R_IssueRenderCommands( qboolean runPerformanceCounters ) { renderCommandList_t *cmdList; cmdList = &backEndData->commands; // add an end-of-list command *(int *)(cmdList->cmds + cmdList->used) = RC_END_OF_LIST; // clear it out, in case this is a sync and not a buffer flip cmdList->used = 0; // at this point, the back end thread is idle, so it is ok // to look at it's performance counters if ( runPerformanceCounters ) { R_PerformanceCounters(); } // actually start the commands going if ( !r_skipBackEnd->integer ) { // let it start on the new batch RB_ExecuteRenderCommands( cmdList->cmds ); } }
void R_IssueRenderCommands( qboolean runPerformanceCounters ) { renderCommandList_t *cmdList; if ( !tr.registered ) { //DAJ BUGFIX return; } cmdList = &backEndData->commands; assert( cmdList ); // add an end-of-list command *( int * )( cmdList->cmds + cmdList->used ) = RC_END_OF_LIST; // clear it out, in case this is a sync and not a buffer flip cmdList->used = 0; if ( runPerformanceCounters ) { R_PerformanceCounters(); } // actually start the commands going if ( !r_skipBackEnd->integer ) { // let it start on the new batch RB_ExecuteRenderCommands( cmdList->cmds ); } }