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)?
TexSubImage2D weirdness
Started by Vilem Otte, Sep 17 2012 11:36 AM
1 reply to this topic
#1 Crossbones+ - Reputation: 835
Posted 17 September 2012 - 11:36 AM
My current blog on programming, linux and stuff - http://linux-ninja.blogspot.com/
Sponsor:
#2 Members - Reputation: 4028
Posted 17 September 2012 - 12:12 PM
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.
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.






