src/video/SDL_video.c
changeset 10924 abfe0c4d98ac
parent 10923 ab8850aa5e19
child 10927 4a024118a421
     1.1 --- a/src/video/SDL_video.c	Wed Mar 01 14:50:59 2017 -0800
     1.2 +++ b/src/video/SDL_video.c	Wed Mar 01 15:05:54 2017 -0800
     1.3 @@ -210,7 +210,6 @@
     1.4  #if SDL_VIDEO_OPENGL
     1.5      /* Ugh, find a way to cache this value! */
     1.6      {
     1.7 -        /*
     1.8          SDL_Window *window;
     1.9          SDL_GLContext context;
    1.10          SDL_bool hasAcceleratedOpenGL = SDL_FALSE;
    1.11 @@ -226,6 +225,7 @@
    1.12                  if (glGetStringFunc) {
    1.13                      vendor = (const char *) glGetStringFunc(GL_VENDOR);
    1.14                  }
    1.15 +                /* Add more vendors here at will... */
    1.16                  if (vendor &&
    1.17                      (SDL_strstr(vendor, "ATI Technologies") ||
    1.18                       SDL_strstr(vendor, "NVIDIA"))) {
    1.19 @@ -235,8 +235,7 @@
    1.20              }
    1.21              SDL_DestroyWindow(window);
    1.22          }
    1.23 -        */
    1.24 -        return 1;//hasAcceleratedOpenGL;
    1.25 +        return hasAcceleratedOpenGL;
    1.26      }
    1.27  #elif SDL_VIDEO_OPENGL_ES || SDL_VIDEO_OPENGL_ES2
    1.28      /* Let's be optimistic about this! */