mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 15:32:57 +00:00
More portal fixing in software renderer
This commit is contained in:
parent
ac19af7514
commit
a226337185
2 changed files with 6 additions and 3 deletions
|
@ -618,9 +618,6 @@ void R_HighlightPortal (PortalDrawseg* pds)
|
||||||
|
|
||||||
void R_EnterPortal (PortalDrawseg* pds, int depth)
|
void R_EnterPortal (PortalDrawseg* pds, int depth)
|
||||||
{
|
{
|
||||||
// [ZZ] portal hook
|
|
||||||
E_RenderCamera();
|
|
||||||
|
|
||||||
// [ZZ] check depth. fill portal with black if it's exceeding the visual recursion limit, and continue like nothing happened.
|
// [ZZ] check depth. fill portal with black if it's exceeding the visual recursion limit, and continue like nothing happened.
|
||||||
if (depth >= r_portal_recursions)
|
if (depth >= r_portal_recursions)
|
||||||
{
|
{
|
||||||
|
@ -723,6 +720,9 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
|
||||||
|
|
||||||
R_CopyStackedViewParameters();
|
R_CopyStackedViewParameters();
|
||||||
|
|
||||||
|
// [ZZ] portal hook
|
||||||
|
E_RenderCamera();
|
||||||
|
|
||||||
validcount++;
|
validcount++;
|
||||||
PortalDrawseg* prevpds = CurrentPortal;
|
PortalDrawseg* prevpds = CurrentPortal;
|
||||||
CurrentPortal = pds;
|
CurrentPortal = pds;
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
#include "v_palette.h"
|
#include "v_palette.h"
|
||||||
#include "r_data/colormaps.h"
|
#include "r_data/colormaps.h"
|
||||||
#include "g_levellocals.h"
|
#include "g_levellocals.h"
|
||||||
|
#include "events.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4244)
|
#pragma warning(disable:4244)
|
||||||
|
@ -1178,6 +1179,8 @@ void R_DrawPortals ()
|
||||||
R_SetViewAngle ();
|
R_SetViewAngle ();
|
||||||
validcount++; // Make sure we see all sprites
|
validcount++; // Make sure we see all sprites
|
||||||
|
|
||||||
|
E_RenderCamera();
|
||||||
|
|
||||||
R_ClearPlanes (false);
|
R_ClearPlanes (false);
|
||||||
R_ClearClipSegs (pl->left, pl->right);
|
R_ClearClipSegs (pl->left, pl->right);
|
||||||
WindowLeft = pl->left;
|
WindowLeft = pl->left;
|
||||||
|
|
Loading…
Reference in a new issue