mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Keep framebuffer sources alive.
Hopefully this is not too dangerous...
This commit is contained in:
parent
49902ed4dc
commit
ac56a7ee65
1 changed files with 3 additions and 0 deletions
|
@ -978,6 +978,9 @@ void TextureCache::SetTextureFramebuffer(TexCacheEntry *entry)
|
||||||
// But let's still not use random memory.
|
// But let's still not use random memory.
|
||||||
if (entry->framebuffer->fbo && entry->invalidHint != -1) {
|
if (entry->framebuffer->fbo && entry->invalidHint != -1) {
|
||||||
fbo_bind_color_as_texture(entry->framebuffer->fbo, 0);
|
fbo_bind_color_as_texture(entry->framebuffer->fbo, 0);
|
||||||
|
// Keep the framebuffer alive.
|
||||||
|
// TODO: Dangerous if it sets a new one?
|
||||||
|
entry->framebuffer->last_frame_used = gpuStats.numFlips;
|
||||||
} else {
|
} else {
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
gstate_c.skipDrawReason |= SKIPDRAW_BAD_FB_TEXTURE;
|
gstate_c.skipDrawReason |= SKIPDRAW_BAD_FB_TEXTURE;
|
||||||
|
|
Loading…
Add table
Reference in a new issue