src/video/haiku/SDL_bopengl.cc
changeset 10983 9f9160df4f1f
parent 10737 3406a0f8b041
child 11063 43d5a039018f
     1.1 --- a/src/video/haiku/SDL_bopengl.cc	Sat Apr 29 22:50:35 2017 +0200
     1.2 +++ b/src/video/haiku/SDL_bopengl.cc	Mon May 01 18:39:05 2017 -0400
     1.3 @@ -94,7 +94,8 @@
     1.4  }
     1.5  
     1.6  int BE_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context) {
     1.7 -    _GetBeApp()->SetCurrentContext(((SDL_BWin*)context)->GetGLView());
     1.8 +    SDL_BWin* win = (SDL_BWin*)context;
     1.9 +    _GetBeApp()->SetCurrentContext(win ? win->GetGLView() : NULL);
    1.10      return 0;
    1.11  }
    1.12