Просмотр исходного кода

Fixed SDL_GL_SetSwapInterval() returning success on two unsupported platforms.

Philipp Wiesemann 9 лет назад
Родитель
Сommit
248410dded
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/video/haiku/SDL_bopengl.cc
  2. 1 1
      src/video/nacl/SDL_naclopengles.c

+ 1 - 1
src/video/haiku/SDL_bopengl.cc

@@ -116,7 +116,7 @@ void BE_GL_DeleteContext(_THIS, SDL_GLContext context) {
 
 int BE_GL_SetSwapInterval(_THIS, int interval) {
     /* TODO: Implement this, if necessary? */
-    return 0;
+    return SDL_Unsupported();
 }
 
 int BE_GL_GetSwapInterval(_THIS) {

+ 1 - 1
src/video/nacl/SDL_naclopengles.c

@@ -141,7 +141,7 @@ int
 NACL_GLES_SetSwapInterval(_THIS, int interval)
 {
     /* STUB */
-    return 0;
+    return SDL_Unsupported();
 }
 
 int