Fixed SDL_GL_SetSwapInterval() returning success on two unsupported platforms.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 04 Jun 2017 23:15:13 +0200
changeset 1106343d5a039018f
parent 11062 a91d5d040223
child 11064 5491788d1015
Fixed SDL_GL_SetSwapInterval() returning success on two unsupported platforms.
src/video/haiku/SDL_bopengl.cc
src/video/nacl/SDL_naclopengles.c
     1.1 --- a/src/video/haiku/SDL_bopengl.cc	Sat Jun 03 23:00:50 2017 +0200
     1.2 +++ b/src/video/haiku/SDL_bopengl.cc	Sun Jun 04 23:15:13 2017 +0200
     1.3 @@ -116,7 +116,7 @@
     1.4  
     1.5  int BE_GL_SetSwapInterval(_THIS, int interval) {
     1.6      /* TODO: Implement this, if necessary? */
     1.7 -    return 0;
     1.8 +    return SDL_Unsupported();
     1.9  }
    1.10  
    1.11  int BE_GL_GetSwapInterval(_THIS) {
     2.1 --- a/src/video/nacl/SDL_naclopengles.c	Sat Jun 03 23:00:50 2017 +0200
     2.2 +++ b/src/video/nacl/SDL_naclopengles.c	Sun Jun 04 23:15:13 2017 +0200
     2.3 @@ -141,7 +141,7 @@
     2.4  NACL_GLES_SetSwapInterval(_THIS, int interval)
     2.5  {
     2.6      /* STUB */
     2.7 -    return 0;
     2.8 +    return SDL_Unsupported();
     2.9  }
    2.10  
    2.11  int