summaryrefslogtreecommitdiffhomepage
path: root/main/setup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/setup.cpp')
-rw-r--r--main/setup.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/setup.cpp b/main/setup.cpp
index 569e43bb..93f3b943 100644
--- a/main/setup.cpp
+++ b/main/setup.cpp
@@ -56,7 +56,9 @@ auto main_impl::make_gl_conf(const fm_settings&) -> GLConfiguration
flags |= GLConfiguration::Flag::ForwardCompatible;
return GLConfiguration{}
.setFlags(flags)
+#ifdef FM_USE_DEPTH32
.setDepthBufferSize(0)
+#endif
.setColorBufferSize({8, 8, 8, 0})
.setStencilBufferSize(0);
}