diff options
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; |