TexSubImage2D weirdness

Started by
0 comments, last by 21st Century Moose 11 years, 7 months ago
Hi,

I'd like to ask - I'm updating half of the texture with OpenCL program and another half on CPU. But calling:

glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, (height - delta_height), GL_RGBA, GL_FLOAT, data_v);

Updates half of the texture (done by CPU) and ignores texture updated by OpenCL. Note that I make sure that OpenCL finishes before I do the TexSubImage call.

Any idea/hint (e.g. what I missed)?

My current blog on programming, linux and stuff - http://gameprogrammerdiary.blogspot.com

Advertisement
That sounds odd to me - as if the driver was updating a CPU-side cached copy of the data, then flushing the full cached copy to the GPU.

Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls.

This topic is closed to new replies.

Advertisement