Permalink
Browse files

Headless: Oops, call SDL_Init().

  • Loading branch information...
unknownbrackets committed Sep 20, 2017
1 parent 7db9dfb commit 40f663664b71c3b74dde769e8a49ac7d3984387f
Showing with 2 additions and 0 deletions.
  1. +2 −0 headless/SDLHeadlessHost.cpp
@@ -72,6 +72,8 @@ void SDLHeadlessHost::LoadNativeAssets() {
}
bool SDLHeadlessHost::InitGraphics(std::string *error_message, GraphicsContext **ctx) {
SDL_Init(SDL_INIT_VIDEO);
// TODO
//SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
//SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);

0 comments on commit 40f6636

Please sign in to comment.