diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-10-03 14:54:55 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-10-03 14:54:55 -0400 |
commit | 5b1c22529a946a782a8376de2b34c28348d078d1 (patch) | |
tree | 43668d02d8488b0385a36f072cae454f869ba440 /src/render.cpp | |
parent | ad5a63db312d0029109e6ca0051feaa516419ad2 (diff) |
fixes; font mem leak fix
Diffstat (limited to 'src/render.cpp')
-rw-r--r-- | src/render.cpp | 3 |
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; |