aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2019-10-03 14:54:55 -0400
committerClyne Sullivan <clyne@bitgloo.com>2019-10-03 14:54:55 -0400
commit5b1c22529a946a782a8376de2b34c28348d078d1 (patch)
tree43668d02d8488b0385a36f072cae454f869ba440 /src/render.cpp
parentad5a63db312d0029109e6ca0051feaa516419ad2 (diff)
fixes; font mem leak fix
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/render.cpp b/src/render.cpp
index cc7ecb1..0f0b138 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -339,9 +339,8 @@ int RenderSystem::init(void)
context = SDL_GL_CreateContext(window.get());
- GLenum err;
glewExperimental = GL_TRUE;
- if((err=glewInit()) != GLEW_OK){
+ if (auto err = glewInit(); err != GLEW_OK){
std::cerr << "GLEW was not able to initialize! Error: " <<
glewGetErrorString(err) << std::endl;
return -1;