|  | 
                    Bug in the glCopyTexImage2D() implementation
                     | 
          
        
        
        
         
        
        
        
         
            
              | 05/27/2009 1:11 AM post30106 | 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.
 | 
            
              |  | 
          
            
              |  |