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
+4 -4
View File
@@ -198,9 +198,10 @@ void CCamWnd::OnPaint() {
CPaintDC dc(this); // device context for painting
bool bPaint = true;
UpdateCaption();
idGraphicsDeviceContextHelper context(dc.m_hDC, hglrc);
QE_CheckOpenGLForErrors();
g_pSplitList = NULL;
if (g_bClipMode) {
if (g_Clip1.Set() && g_Clip2.Set()) {
@@ -209,7 +210,6 @@ void CCamWnd::OnPaint() {
}
Cam_Draw();
QE_CheckOpenGLForErrors();
}
/*
@@ -961,6 +961,7 @@ void CCamWnd::Cam_Draw() {
Cam_Render();
}
glViewport(0, 0, m_Camera.width, m_Camera.height);
glScissor(0, 0, m_Camera.width, m_Camera.height);
glClearColor(g_qeglobals.d_savedinfo.colors[COLOR_CAMERABACK][0], g_qeglobals.d_savedinfo.colors[COLOR_CAMERABACK][1], g_qeglobals.d_savedinfo.colors[COLOR_CAMERABACK][2], 0);
@@ -1789,7 +1790,6 @@ void CCamWnd::BuildRendererState() {
//common->Printf("Render data used %d brushes\n", numBrushes);
worldDirty = false;
UpdateCaption();
}
/*
@@ -2096,7 +2096,7 @@ void CCamWnd::Cam_Render() {
int frontEnd, backEnd;
renderSystem->EndFrame( &frontEnd, &backEnd );
renderSystem->EndFrame( &frontEnd, &backEnd, false );
//common->Printf( "front:%i back:%i\n", frontEnd, backEnd );
//glPopAttrib();