Browse Source

sdl: display GL context version upon creation.

legacy
Sam Hocevar 5 years ago
parent
commit
864bc699cf
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/application/sdl-app.cpp

+ 1
- 0
src/application/sdl-app.cpp View File

@@ -67,6 +67,7 @@ sdl::app_display::app_display(char const *title, ivec2 res)
SDL_GetWindowSize(m_window, &res.x, &res.y);

m_glcontext = SDL_GL_CreateContext(m_window);
msg::info("created GL context: %s\n", glGetString(GL_VERSION));

/* Initialise everything */
Video::Setup(res); //TODO ?? Should it be here ?


Loading…
Cancel
Save