浏览代码

sdl: display GL context version upon creation.

legacy
Sam Hocevar 5 年前
父节点
当前提交
864bc699cf
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      src/application/sdl-app.cpp

+ 1
- 0
src/application/sdl-app.cpp 查看文件

@@ -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 ?


正在加载...
取消
保存