Code: Select all
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, (GLsizei)mWidth, (GLsizei)mHeight, 0, GL_RGB, GL_UNSIGNED_BYTE, GetPixels ());Code: Select all
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, (GLsizei)mWidth, (GLsizei)mHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, GetPixels ());In both cases vcdbg shows a texture blob that uses approximately 4*mHeight*mWidth bytes.
That is a pity because it wastes 30% of GPU memory.