aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 303ff1c..84f3e7e 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -81,9 +81,8 @@ void init(void)
#endif
auto glewError = glewInit();
- if (glewError != GLEW_OK)
- UserError(std::string("GLEW was not able to initialize! Error: ")
- + reinterpret_cast<const char *>(glewGetErrorString(glewError)));
+ UserAssert(glewError == GLEW_OK, std::string("GLEW was not able to initialize! Error: ")
+ + reinterpret_cast<const char *>(glewGetErrorString(glewError)));
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); // anti-aliasing
SDL_GL_SetSwapInterval(1); // v-sync