Apply unknown's workaround for dx viewport issues - additionally, we shouldn't even have to call the function in non-buffered..

This commit is contained in:
Henrik Rydgard 2015-11-12 15:26:06 +01:00
parent 45da00d381
commit e6b39d65d3
2 changed files with 5 additions and 1 deletions

View File

@ -1161,7 +1161,9 @@ namespace DX9 {
}
void FramebufferManagerDX9::DecimateFBOs() {
fbo_unbind();
if (g_Config.iRenderingMode != FB_NON_BUFFERED_MODE) {
fbo_unbind();
}
currentRenderVfb_ = 0;
bool updateVram = !(g_Config.iRenderingMode == FB_NON_BUFFERED_MODE || g_Config.iRenderingMode == FB_BUFFERED_MODE);

View File

@ -115,6 +115,8 @@ void fbo_destroy(FBO *fbo) {
void fbo_unbind() {
pD3Ddevice->SetRenderTarget(0, deviceRTsurf);
pD3Ddevice->SetDepthStencilSurface(deviceDSsurf);
dxstate.scissorRect.restore();
dxstate.viewport.restore();
}
void fbo_resolve(FBO *fbo) {