src/video/SDL_video.c
changeset 5385 5f9c2515fc08
parent 5384 93d53f8a2323
child 5398 83816c8a2b58
equal deleted inserted replaced
5384:93d53f8a2323 5385:5f9c2515fc08
   168     {
   168     {
   169         SDL_Window *window;
   169         SDL_Window *window;
   170         SDL_GLContext context;
   170         SDL_GLContext context;
   171         SDL_bool hasAcceleratedOpenGL = SDL_FALSE;
   171         SDL_bool hasAcceleratedOpenGL = SDL_FALSE;
   172 
   172 
   173         window = SDL_CreateWindow("OpenGL test", -32, -32, 32, 32, SDL_WINDOW_OPENGL);
   173         window = SDL_CreateWindow("OpenGL test", -32, -32, 32, 32, SDL_WINDOW_OPENGL|SDL_WINDOW_HIDDEN);
   174         if (window) {
   174         if (window) {
   175             context = SDL_GL_CreateContext(window);
   175             context = SDL_GL_CreateContext(window);
   176             if (context) {
   176             if (context) {
   177                 const GLubyte *(APIENTRY * glGetStringFunc) (GLenum);
   177                 const GLubyte *(APIENTRY * glGetStringFunc) (GLenum);
   178                 const char *vendor = NULL;
   178                 const char *vendor = NULL;