From 99b5c77b0d4a7f46ce2531c73e2e3f9abbc13939 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 1 Dec 2013 23:19:59 +0100 Subject: [PATCH] (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 --- apple/common/RAGameView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apple/common/RAGameView.m b/apple/common/RAGameView.m index 58fc850f5a..f86a5668a9 100644 --- a/apple/common/RAGameView.m +++ b/apple/common/RAGameView.m @@ -254,6 +254,8 @@ static bool g_is_syncing = true; [[NSNotificationCenter defaultCenter] postNotificationName:@"NewCameraTextureReady" object:nil]; newFrame = true; + glBindTexture(GL_TEXTURE_2D, 0); + CVOpenGLESTextureCacheFlush(textureCache, 0); CFRelease(renderTexture); }