Hello experts,
I do not know much about OpenGL, but i need to fix this bug (code written by someone else).
When two canvas windows opened at the same time, the image display does not work properly. Sometimes, the whole canvas becomes black or green or red...
I think might be related to the call glGenTextures(1, &textureID) - the main windows mixed the textureID in the two cavas windows. But the code related to this part is like this
if(!glIsTexture(textureId)
)
glGenTextures(1,&textureId
);
Looks like the above code will make sure the textureID be unique, is it?
Any other idea why this problem happens?
Thanks.
Alison
Start Free Trial