aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.cpp
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-10-08 03:03:16 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-10-08 03:03:16 -0400
commita422f32613441b5313e4a3bb0fab61f8cb87914c (patch)
tree0a6c8f17e6a8df0b6c377813fa700064f68ced93 /src/render.cpp
parent5f53889d4357d8dba6e726ed38358eca96dbeb47 (diff)
parent5b1c22529a946a782a8376de2b34c28348d078d1 (diff)
Using polymorphism for world layer storage now, and added demo backdrops
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 7d9f9e9..9362134 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;