CVImageBufferRef to OpenGL
Has anyone managed to turn a CVImageBufferRef into an OpenGLES texture? I´ve tried using:
glTexImage2D(GL TEXTURE2D, 0, GL_RGBA, width, height, 0, GL_BGRA, GL UNSIGNEDINT, CVPixelBufferGetBaseAddress(image));
but the texture comes out completely black. Any help?
glTexImage2D(GL TEXTURE2D, 0, GL_RGBA, width, height, 0, GL_BGRA, GL UNSIGNEDINT, CVPixelBufferGetBaseAddress(image));
but the texture comes out completely black. Any help?
IPhone 3GS, iOS 4, none