|
|
@@ -1394,7 +1394,6 @@ bool RasterizerCacheOpenGL::PartialReinterpretSurface(Surface triggering_surface
|
|
|
void RasterizerCacheOpenGL::NotifyFrameBufferChange(Surface triggering_surface) {
|
|
|
if (triggering_surface == nullptr)
|
|
|
return;
|
|
|
- run_texception_pass = false;
|
|
|
if (texception) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -1408,11 +1407,10 @@ void RasterizerCacheOpenGL::SignalPreDrawCall() {
|
|
|
if (texception) {
|
|
|
glTextureBarrier();
|
|
|
}
|
|
|
+ texception = false;
|
|
|
}
|
|
|
|
|
|
void RasterizerCacheOpenGL::SignalPostDrawCall() {
|
|
|
- if (!run_texception_pass)
|
|
|
- return;
|
|
|
for (u32 i = 0; i < Maxwell::NumRenderTargets; i++) {
|
|
|
if (current_color_buffers[i] != nullptr) {
|
|
|
Surface intersect = CollideOnReinterpretedSurface(current_color_buffers[i]->GetAddr());
|
|
|
@@ -1422,21 +1420,6 @@ void RasterizerCacheOpenGL::SignalPostDrawCall() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (!texception)
|
|
|
- run_texception_pass = false;
|
|
|
-}
|
|
|
-
|
|
|
-void RasterizerCacheOpenGL::SignalPostFramebufferSetup() {
|
|
|
- if (!run_texception_pass)
|
|
|
- texception = false;
|
|
|
-}
|
|
|
-
|
|
|
-void RasterizerCacheOpenGL::SignalSurfaceParameter(Surface& surface) {
|
|
|
- if (surface == nullptr)
|
|
|
- return;
|
|
|
- if (surface->IsReinterpreted()) {
|
|
|
- run_texception_pass = true;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
} // namespace OpenGL
|