Sfoglia il codice sorgente

win32: Set error for SDL_GL_GetSwapInterval()

(cherry picked from commit 54de246b4b44610f7418495ee0485ddbc6e8cd20)
Zack Middleton 2 settimane fa
parent
commit
65dfdce3df
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/video/windows/SDL_windowsopengl.c

+ 1 - 1
src/video/windows/SDL_windowsopengl.c

@@ -910,7 +910,7 @@ bool WIN_GL_GetSwapInterval(SDL_VideoDevice *_this, int *interval)
         *interval = _this->gl_data->wglGetSwapIntervalEXT();
         return true;
     } else {
-        return false;
+        return SDL_Unsupported();
     }
 }