DXR raytracing now works in the preview window.

This commit is contained in:
Justin Marshall
2026-04-24 15:28:26 -07:00
parent ea83d9eac1
commit 58638b64e0
4 changed files with 12 additions and 9 deletions
+6 -3
View File
@@ -705,7 +705,7 @@ EndFrame
Returns the number of msec spent in the back end
=============
*/
void idRenderSystemLocal::EndFrame( int *frontEndMsec, int *backEndMsec ) {
void idRenderSystemLocal::EndFrame( int *frontEndMsec, int *backEndMsec, bool swapBuffer) {
emptyCommand_t *cmd;
if ( !glConfig.isInitialized ) {
@@ -734,8 +734,11 @@ void idRenderSystemLocal::EndFrame( int *frontEndMsec, int *backEndMsec ) {
GL_CheckErrors();
// add the swapbuffers command
cmd = (emptyCommand_t *)R_GetCommandBuffer( sizeof( *cmd ) );
cmd->commandId = RC_SWAP_BUFFERS;
if (swapBuffer)
{
cmd = (emptyCommand_t*)R_GetCommandBuffer(sizeof(*cmd));
cmd->commandId = RC_SWAP_BUFFERS;
}
// start the back end up again with the new command list
R_IssueRenderCommands();