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

summaryrefslogtreecommitdiff
path: root/source/application
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-07-30 12:19:18 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-07-30 12:19:18 +1000
commitdb836d0ca4459c00540fa251a7078b0fe24bdecc (patch)
tree15ca96f06046851824e754ad232a06f50374366f /source/application
parenta5f42ce40a848e3ef66dd6b0bda0fd94954fb6bb (diff)
Update StarRenderer_opengl.cpp
Diffstat (limited to 'source/application')
-rw-r--r--source/application/StarRenderer_opengl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/application/StarRenderer_opengl.cpp b/source/application/StarRenderer_opengl.cpp
index 2e1c47d..a22bb35 100644
--- a/source/application/StarRenderer_opengl.cpp
+++ b/source/application/StarRenderer_opengl.cpp
@@ -90,8 +90,9 @@ static void GLAPIENTRY GlMessageCallback(GLenum, GLenum type, GLuint, GLenum, GL
*/
OpenGlRenderer::OpenGlRenderer() {
- if (glewInit() != GLEW_OK)
- throw RendererException("Could not initialize GLEW");
+ auto result = glewInit();
+ if (result != GLEW_OK)
+ throw RendererException::format("Could not initialize GLEW: {}", (char*)glewGetErrorString(result));
if (!GLEW_VERSION_2_0)
throw RendererException("OpenGL 2.0 not available!");