DarkRadiant: master df2f7a96

Author Committer Branch Timestamp Parent
orbweaver orbweaver master 06.03.2024 20:25 master d837e020
Affected Issues  0005502: Surfaces render through other surfaces on AMD cards
Changeset 0005502: set depth buffer size to 24 bits

Although the wxGLCanvas wiki tutorial uses a depth buffer of 16 bits, this is
extremely low precision for a depth buffer, and is likely the cause of
the Z fighting issues described in 0005502.

We now set it to the more usual 24 bits, as confirmed by OpenGL
tutorials such as https://learnopengl.com/Advanced-OpenGL/Depth-testing
mod - libs/wxutil/GLWidget.cpp Diff File