diff options
Diffstat (limited to 'lib/glbase.cc')
-rw-r--r-- | lib/glbase.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/glbase.cc b/lib/glbase.cc index ebbfe08..3d89644 100644 --- a/lib/glbase.cc +++ b/lib/glbase.cc @@ -16,7 +16,7 @@ mogltk::glbase::glbase(int w, int h, int flags) throw (GeneralException) : moglt throw GeneralException(String("Couldn't initialise Video SubSystem: ") + SDL_GetError()); } - if (!(surface = SDL_SetVideoMode(w, h, 0, flags | SDL_OPENGL))) { + if (!(surface = SDL_SetVideoMode(w, h, 0, flags | SDL_OPENGL | SDL_HWSURFACE))) { throw GeneralException(String("Couldn't set GL mode: ") + SDL_GetError()); } |