batch this stuff too for portals

This commit is contained in:
Alug committed 2024-01-25 04:06:54 +01:00
1 parent 9e62f5bd52
commit 2df4738af2
1 file changed
+8 -1
+8 -1
View File
@@ -195,7 +195,7 @@ static void CV_grshaders_OnChange(void)
{
ONLY_IF_GL_LOADED
HWR_SetShaderState();
if ((cv_grpaletterendering.value))
if (cv_grpaletterendering.value)
{
// can't do palette rendering without shaders, so update the state if needed
HWR_TogglePaletteRendering();
@@ -6101,7 +6101,14 @@ static void HWR_RenderViewpoint(gl_portal_t *rootportal, const float fpov, playe
else
HWR_PortalClipping(rootportal);
validcount++;
if (cv_grbatching.value)
HWR_StartBatching();
HWR_RenderBSPNode((INT32)numnodes-1);// no actual rendering happens
if (cv_grbatching.value)
HWR_RenderBatches();
// for each found portal:
// note: if necessary, could sort the portals here?