X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=mupen64plus-pandora.git;a=blobdiff_plain;f=source%2Fgles2glide64%2Fsrc%2FGlitch64%2Fglitchmain.cpp;h=668cff99701163c8fa708fafa240afc5e346fb39;hp=21e16b75d783f759d57f7c4a9e6f28ede083d208;hb=2d26287291331f2b1793a8e76ede08c75654fb7c;hpb=01d8ca6fb06a8261602900cab63c61e5a1b143c9 diff --git a/source/gles2glide64/src/Glitch64/glitchmain.cpp b/source/gles2glide64/src/Glitch64/glitchmain.cpp index 21e16b7..668cff9 100755 --- a/source/gles2glide64/src/Glitch64/glitchmain.cpp +++ b/source/gles2glide64/src/Glitch64/glitchmain.cpp @@ -507,7 +507,7 @@ grSstWinOpen( // ZIGGY viewport_offset is WIN32 specific, with SDL just set it to zero viewport_offset = 0; //-10 //-20; - // ZIGGY not sure, but it might be better to let the system choose + CoreVideo_Init(); CoreVideo_GL_SetAttribute(M64P_GL_DOUBLEBUFFER, 1); CoreVideo_GL_SetAttribute(M64P_GL_SWAP_CONTROL, vsync); CoreVideo_GL_SetAttribute(M64P_GL_BUFFER_SIZE, 16); @@ -817,6 +817,9 @@ grSstWinClose( GrContext_t context ) //SDL_QuitSubSystem(SDL_INIT_VIDEO); //sleep(2); #endif + + CoreVideo_Quit(); + return FXTRUE; }