summaryrefslogtreecommitdiffhomepage
path: root/main.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-05 05:05:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-05 05:05:00 +0200
commitd2b9714c5ab557de69a985bdb7e4a0ab0fd95864 (patch)
tree053fd6c2808451ce3645c09c53f9163f9da8c4e8 /main.cpp
parent32f504c6afb811363b5af0a25fe213d37233c49d (diff)
a
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/main.cpp b/main.cpp
index fec93cec..47a41118 100644
--- a/main.cpp
+++ b/main.cpp
@@ -153,13 +153,14 @@ app::app(const Arguments& arguments):
}
void app::drawEvent() {
- GL::defaultFramebuffer.clear(GL::FramebufferClear::Color);
-
-#if 1
- GL::defaultFramebuffer.clear(GL::FramebufferClear::Depth);
+#if 0
+ GL::defaultFramebuffer.clear(GL::FramebufferClear::Color | GL::FramebufferClear::Depth);
GL::Renderer::setDepthMask(true);
GL::Renderer::setDepthFunction(GL::Renderer::DepthFunction::LessOrEqual);
GL::Renderer::enable(GL::Renderer::Feature::DepthTest);
+#else
+ GL::defaultFramebuffer.clear(GL::FramebufferClear::Color);
+ GL::Renderer::setDepthFunction(GL::Renderer::DepthFunction::Never);
#endif
update_window_scale();
@@ -181,9 +182,6 @@ void app::drawEvent() {
}
#endif
- //auto floor1_sampler = _shader.bind_sampler(floor1);
- //auto wall_sampler = _shader.bind_sampler(wall1);
-
#if 1
draw_chunk(_chunk);
#endif