SDL failed to create window |
SDL failed to create window |
Owen Alanzo Hogarth
Guest
|
bump on this issue?
Why would SDL fail to create the window with this error: INFO: Couldn't find matching GLX visual anyone? On Mon, Nov 9, 2015 at 1:08 AM, Owen Alanzo Hogarth wrote:
|
|||||||||||||
|
SDL failed to create window |
Alex Szpakowski
Guest
|
What GL attributes (if any) do you set via SDL_GL_SetAttribute?
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
SDL failed to create window |
Owen Alanzo Hogarth
Guest
|
  if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
    SDL_Log("sdl failed to core_engine_init, %s", SDL_GetError());     SDL_Quit();     return -1;   }   SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);   SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);   SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK,             SDL_GL_CONTEXT_PROFILE_CORE);   SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);   SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);   window = SDL_CreateWindow(     "title", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 300, 300,     SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE);   if (NULL == window) {     SDL_Log("SDL Failed to create window, %s", SDL_GetError());     SDL_Quit();     return -1;   }   main_context = SDL_GL_CreateContext(window);   if (NULL == main_context) {     SDL_Log("SDL failed to create main context, %s", SDL_GetError());     SDL_Quit();     return -1;   } On Tue, Nov 10, 2015 at 3:00 PM, Alex Szpakowski wrote:
|
|||||||||||||||
|
MrTAToad
|
Its possible that hardware acceleration isn't available, and thus a usable resolution isn't available.
Also the resolution and/or bit depth isn't available. |
|||||||||||
|