From ff530d7815ad7ebc15a952855b7c907575147988 Mon Sep 17 00:00:00 2001 From: kroko Date: Tue, 17 Jan 2012 23:47:49 +0200 Subject: [PATCH] CVOpenGLTextureCache possible fix for CVOpenGLTextureCache: Forced to manually upload an IOSurface backed pixel buffer because it uses a non-native pixel format. Break on CVOpenGLTextureCache_IOSurfaceNotInNativePixelFormat() to debug. --- src/QTKitMovieRenderer.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/QTKitMovieRenderer.m b/src/QTKitMovieRenderer.m index 2f59d3f..ff562e7 100644 --- a/src/QTKitMovieRenderer.m +++ b/src/QTKitMovieRenderer.m @@ -166,7 +166,9 @@ - (BOOL) loadMovie:(NSString*)moviePath allowTexture:(BOOL)doUseTexture allowPix return NO; } - [_movie setVisualContext:_visualContext]; + // Fix (?) for CVOpenGLTextureCache: Forced to manually upload an IOSurface backed pixel buffer because it uses a non-native pixel format + // changed from [_movie setVisualContext:_visualContext]; + SetMovieVisualContext([_movie quickTimeMovie], _visualContext); self.volume = 1.0; self.loops = YES;