We are doing a program that use textures and when it’s executing, a white cube appears. It is possible that the problem is the size of texture, for this reason, we reduce the size of the texture but we don’t know the size of the memory texture. How can we obtain the size of the memory texture of GPU? Thanks.
Check the maximum possible texture size glGet(GL_MAX_TEXTURE_SIZE) , and call glGetError after loading texture to check at runtime that everything was fine.