mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2025-01-22 08:21:48 +00:00
fixed the viewport and scissor rectangles
This commit is contained in:
parent
04ebdc63f6
commit
26dd67d0d1
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue