mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-20 18:42:17 +00:00
- fixed: The translucent border draw list must be rendered with depth writing active.
This gets exclusively used by portal borders which means that for walls the setting is irrelevant but for flats it is needed to cover the portal surface so that translucent parts of the outer scene do not bleed through.
(cherry picked from commit d0aacd3ba8
)
# Conflicts:
# src/gl/scene/gl_scene.cpp
This commit is contained in:
parent
06496c7df7
commit
ea752bde90
1 changed files with 1 additions and 1 deletions
|
@ -442,7 +442,6 @@ void GLSceneDrawer::RenderTranslucent()
|
|||
{
|
||||
RenderAll.Clock();
|
||||
|
||||
glDepthMask(false);
|
||||
gl_RenderState.SetCameraPos(r_viewpoint.Pos.X, r_viewpoint.Pos.Y, r_viewpoint.Pos.Z);
|
||||
|
||||
// final pass: translucent stuff
|
||||
|
@ -451,6 +450,7 @@ void GLSceneDrawer::RenderTranslucent()
|
|||
|
||||
gl_RenderState.EnableBrightmap(true);
|
||||
gl_drawinfo->drawlists[GLDL_TRANSLUCENTBORDER].Draw(GLPASS_TRANSLUCENT);
|
||||
glDepthMask(false);
|
||||
gl_drawinfo->drawlists[GLDL_TRANSLUCENT].DrawSorted();
|
||||
gl_RenderState.EnableBrightmap(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue