mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Merge pull request #2994 from unknownbrackets/render-fb
Correctly rebind textures after an fbo tex
This commit is contained in:
commit
2a91cbac98
1 file changed
+1
-4
@@ -193,10 +193,6 @@ void TextureCache::NotifyFramebuffer(u32 address, VirtualFramebuffer *framebuffe
|
||||
}
|
||||
entry->framebuffer = framebuffer;
|
||||
// TODO: Delete the original non-fbo texture too.
|
||||
} else {
|
||||
// Force a re-bind, fixes map in Tactics Ogre.
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
lastBoundTexture = -1;
|
||||
}
|
||||
} else if (g_Config.iRenderingMode == FB_NON_BUFFERED_MODE || g_Config.iRenderingMode == FB_BUFFERED_MODE) {
|
||||
// 3rd Birthday (and possibly other games) render to a 16 bit clut texture.
|
||||
@@ -1023,6 +1019,7 @@ void TextureCache::SetTexture() {
|
||||
if (useBufferedRendering) {
|
||||
if (entry->framebuffer->fbo) {
|
||||
fbo_bind_color_as_texture(entry->framebuffer->fbo, 0);
|
||||
lastBoundTexture = -1;
|
||||
} else {
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
lastBoundTexture = -1;
|
||||
|
||||
Reference in new issue
Block a user