mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
(iOS) Camera - do glBindTexture(GL_TEXTURE_2D, 0) at end of processFrame
to prevent stale garbage texture frame from being output to main framebuffer. There is still flickering going on though
This commit is contained in:
parent
5a483468f0
commit
99b5c77b0d
@ -254,6 +254,8 @@ static bool g_is_syncing = true;
|
|||||||
[[NSNotificationCenter defaultCenter] postNotificationName:@"NewCameraTextureReady" object:nil];
|
[[NSNotificationCenter defaultCenter] postNotificationName:@"NewCameraTextureReady" object:nil];
|
||||||
newFrame = true;
|
newFrame = true;
|
||||||
|
|
||||||
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
|
|
||||||
CVOpenGLESTextureCacheFlush(textureCache, 0);
|
CVOpenGLESTextureCacheFlush(textureCache, 0);
|
||||||
CFRelease(renderTexture);
|
CFRelease(renderTexture);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user