NVIDIA Geforce 7800 GTX
Forceware 77.72 drivers
glGenTextures(1, &id);
glBindTexture(GL_TEXTURE_2D, id);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 512, 512, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
if(pixels == 0)
==> Is memory allocated for the texture on the GPU ? If not when is it allocated ?
if(pixels != 0)
==> Is memory allocated for the texture on the GPU or is it (pixels) buffered somewhere else (ex:- PCIExpress memory) ?
In either of the above cases, how to know if the memory is allocated on the GPU ?
In either case, is the memory allocate on the GPU when it is:
- first used as a destination of an FBO
- first time bound for texture mapping
- first time it is bound and another glTexImage2D/glTexSubImage2D call is made