• Advertisement
Sign in to follow this  

TexSubImage2D weirdness

This topic is 1951 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement