fixed the viewport and scissor rectangles

This commit is contained in:
myT 2017-12-23 10:14:44 +01:00
parent 04ebdc63f6
commit 26dd67d0d1

View file

@ -805,7 +805,8 @@ void GL2_EndFrame()
// we disable depth test, depth write and blending // we disable depth test, depth write and blending
GL_State( GLS_DEPTHTEST_DISABLE ); GL_State( GLS_DEPTHTEST_DISABLE );
qglScissor( 0, 0, glInfo.winWidth, glInfo.winHeight ); qglViewport( 0, 0, glConfig.vidWidth, glConfig.vidHeight );
qglScissor( 0, 0, glConfig.vidWidth, glConfig.vidHeight );
GL2_PostProcessGamma(); GL2_PostProcessGamma();
GL2_PostProcessGreyscale(); GL2_PostProcessGreyscale();
@ -814,6 +815,9 @@ void GL2_EndFrame()
// the above functions use qglBindTexture directly // the above functions use qglBindTexture directly
glState.texID[glState.currenttmu] = 0; glState.texID[glState.currenttmu] = 0;
qglViewport (0, 0, glInfo.winWidth, glInfo.winHeight );
qglScissor( 0, 0, glInfo.winWidth, glInfo.winHeight );
GL2_FBO_BlitSSToBackBuffer(); GL2_FBO_BlitSSToBackBuffer();
} }