Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/application/StarRenderer_opengl.cpp
diff options
context:
space:
mode:
authorLDA <lda@ldasuku.net>2024-10-17 00:16:44 -0700
committerLDA <lda@ldasuku.net>2024-10-17 00:16:44 -0700
commit9ba9eb2ac33a53a8fd50ce14d40be00d42a9f7af (patch)
tree88d8db3dace1851b1b780eb9264290ff5552c04f /source/application/StarRenderer_opengl.cpp
parent8aedf51957689d37250f21279df8376d57414cee (diff)
only set minimum opengl context version on macos
Diffstat (limited to 'source/application/StarRenderer_opengl.cpp')
-rw-r--r--source/application/StarRenderer_opengl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/application/StarRenderer_opengl.cpp b/source/application/StarRenderer_opengl.cpp
index 0c9e7ec..9d0d717 100644
--- a/source/application/StarRenderer_opengl.cpp
+++ b/source/application/StarRenderer_opengl.cpp
@@ -107,8 +107,10 @@ OpenGlRenderer::OpenGlRenderer() {
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDisable(GL_DEPTH_TEST);
- //glEnable(GL_DEBUG_OUTPUT);
- //glDebugMessageCallback(GlMessageCallback, this);
+ if (GLEW_VERSION_4_3) {
+ //glEnable(GL_DEBUG_OUTPUT);
+ //glDebugMessageCallback(GlMessageCallback, this);
+ }
m_whiteTexture = createGlTexture(Image::filled({1, 1}, Vec4B(255, 255, 255, 255), PixelFormat::RGBA32),
TextureAddressing::Clamp,