From 248410dded5e13337fa421966616776537a637cc Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sun, 4 Jun 2017 23:15:13 +0200 Subject: [PATCH] Fixed SDL_GL_SetSwapInterval() returning success on two unsupported platforms. --- src/video/haiku/SDL_bopengl.cc | 2 +- src/video/nacl/SDL_naclopengles.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/haiku/SDL_bopengl.cc b/src/video/haiku/SDL_bopengl.cc index 4bec9fd6c..3a5cb917b 100644 --- a/src/video/haiku/SDL_bopengl.cc +++ b/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) { diff --git a/src/video/nacl/SDL_naclopengles.c b/src/video/nacl/SDL_naclopengles.c index e61827edf..d7ddc247a 100644 --- a/src/video/nacl/SDL_naclopengles.c +++ b/src/video/nacl/SDL_naclopengles.c @@ -141,7 +141,7 @@ int NACL_GLES_SetSwapInterval(_THIS, int interval) { /* STUB */ - return 0; + return SDL_Unsupported(); } int