Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Bug in the glCopyTexImage2D() implementation: Page 1 of 3 (3 Items)
   
Bug in the glCopyTexImage2D() implementation  
As far as I understand glCopyTexImage2D() is implemented always using software fallback only, so problem affects all 3D 
drivers, not only devg-extreme2.

I'm creating texture as: 

glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 128, 128,  0, GL_RGBA, GL_UNSIGNED_BYTE, data);

texture data is set to 0x00 as the initial state.

Then color buffer content (in monochromatic form) is copied to this texture via:

glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, 0, 0, 128, 128, 0);

When color buffer is set to 565 format all works fine, but in case of current color buffer is in 8888 format (maybe 888 
too - I can't check) copied texture looks shrinked twice by horizontal resolution.

If GL_LUMINANCE is replaced with GL_RGBA in glCopyTexImage2D() function call - all works fine with any color buffer 
format.