diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index d8eb0b530..4cfd44203 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -38,8 +38,7 @@ namespace opengl currentMode.height = 0; // Window should be centered. - char * center = "SDL_VIDEO_CENTERED=center"; - SDL_putenv(center); + SDL_putenv(const_cast("SDL_VIDEO_CENTERED=center")); if(SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) throw Exception(SDL_GetError());