diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-26 15:06:42 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-26 15:06:42 +0000 |
| commit | 408d96668d57fdd1a713e56f1d40a9befd51bd4a (patch) | |
| tree | 5df08ca2a3506afa44bca786b31f80b7a4d13741 /src/render/OpenGL.hpp | |
| parent | 75e579931088671fb333efd2a3923ff96b868fe9 (diff) | |
renderer: use occlusion checks for buffer clear
Diffstat (limited to 'src/render/OpenGL.hpp')
| -rw-r--r-- | src/render/OpenGL.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/OpenGL.hpp b/src/render/OpenGL.hpp index 9ff571f2..ea2fe07e 100644 --- a/src/render/OpenGL.hpp +++ b/src/render/OpenGL.hpp @@ -30,7 +30,8 @@ inline const float fullVerts[] = { }; inline const float fanVertsFull[] = {-1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f}; -enum eDiscardMode { +enum eDiscardMode +{ DISCARD_OPAQUE = 1, DISCARD_ALPHA = 1 << 1 }; |
