mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 04:51:41 +00:00
- fixed: The stereo3D code accessed the global 'viewsector' variable at a place where it no longer contained a correct value.
- fixed: The same code did not exclude camera texture views from drawing the 2D overlay.
This commit is contained in:
parent
bb355b3a78
commit
cc10fe9bc3
1 changed files with 2 additions and 1 deletions
|
@ -810,6 +810,7 @@ sector_t * FGLRenderer::RenderViewpoint (AActor * camera, GL_IRECT * bounds, flo
|
|||
mViewActor=camera;
|
||||
}
|
||||
|
||||
// 'viewsector' will not survive the rendering so it cannot be used anymore below.
|
||||
retval = viewsector;
|
||||
|
||||
// Render (potentially) multiple views for stereo 3d
|
||||
|
@ -838,7 +839,7 @@ sector_t * FGLRenderer::RenderViewpoint (AActor * camera, GL_IRECT * bounds, flo
|
|||
clipper.SafeAddClipRangeRealAngles(viewangle + a1, viewangle - a1);
|
||||
|
||||
ProcessScene(toscreen);
|
||||
EndDrawScene(viewsector);
|
||||
if (mainview) EndDrawScene(retval); // do not call this for camera textures.
|
||||
eye->TearDown();
|
||||
}
|
||||
stereo3dMode.TearDown();
|
||||
|
|
Loading…
Reference in a new issue