On Mar 27, 2008, at 11:59 AM, Richard Schreyer wrote:
Are you calling TexImage2D between GenTextures and CopyTexSubImage2D?
Yep.. I snagged that code from QuartzComposer_WWDC_QCTV
Possibilities solutions are:
Adding glTexImage2D(pixels=NULL) between Gen and Sub
Replacing CopyTexSubImage2D with CopyTexImage2D
Tried both and still nothing. I feel like I'm missing something
One possible area of confusion is with the NSOpenGLPixelBuffer. It
gets a texture target but I don't ever create or bind a texture for
it. That code I snagged from another sample (which I can't recall
now) and it's been working great in a slightly different application
so I never questioned it.
You should also investigate using Framebuffer Objects to render into
the texture directly, rather than copying data into the texture.
I read about those briefly but I felt that I had a better chance of
making it work the other way given all of the sample code laying
around. I'll give Framebuffer objects a try too.
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: