X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Finit.cpp;h=78a83e1df190d741c170c2823d7a07f578daa8e6;hb=d2f4c8720ae2326fac4203fa4984d835e875b355;hp=a0ea7b51ba5d614a3df13814c4eee90468d6fe1d;hpb=10a310869c61cc52046e165f36ac9639fe9d0c69;p=blank.git diff --git a/src/app/init.cpp b/src/app/init.cpp index a0ea7b5..78a83e1 100644 --- a/src/app/init.cpp +++ b/src/app/init.cpp @@ -139,7 +139,7 @@ InitAL::InitAL() { } } -InitAL::~InitAL() { +InitAL::~InitAL() throw(AlutError) { if (!alutExit()) { throw AlutError(alutGetError(), "alutExit"); } @@ -157,9 +157,9 @@ InitGL::InitGL(bool double_buffer, int sample_size) { throw SDLError("SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE)"); } - if (double_buffer) { - if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1) != 0) { - throw SDLError("SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1)"); + if (!double_buffer) { + if (SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0) != 0) { + throw SDLError("SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 0)"); } }