فهرست منبع

video: check for "software" with SDL_HINT_FRAMEBUFFER_ACCELERATION.

We check for this value elsewhere but not in SDL_CreateWindowFramebuffer.
Ryan C. Gordon 2 سال پیش
والد
کامیت
a2c5757356
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/video/SDL_video.c

+ 1 - 1
src/video/SDL_video.c

@@ -2628,7 +2628,7 @@ SDL_CreateWindowFramebuffer(SDL_Window * window)
         /* See if the user or application wants to specifically disable the framebuffer */
         const char *hint = SDL_GetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION);
         if (hint) {
-            if (*hint == '0' || SDL_strcasecmp(hint, "false") == 0) {
+            if ((*hint == '0') || (SDL_strcasecmp(hint, "false") == 0) || (SDL_strcasecmp(hint, "software") == 0)) {
                 attempt_texture_framebuffer = SDL_FALSE;
             }
         }