lion0406 / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

copyTexImage2D does not work for ALPHA textures #339

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 
https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conforma
nce/textures/copy-tex-image-2d-formats.html

What is the expected output? 

generating an ALPHA texture from an RGBA texture should product 0,0,0,A

What do you see instead?

It's just copying the RGBA texture.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by g...@chromium.org on 15 Jun 2012 at 6:06

GoogleCodeExporter commented 9 years ago
Yeah I can see how that would go wrong. GL_ALPHA textures get converted to 
A8R8G8B8 textures, and we "forget" the fact that it's supposed to be ALPHA-only 
when we do the copyteximage.

Original comment by dan...@transgaming.com on 21 Jun 2012 at 1:15

GoogleCodeExporter commented 9 years ago
This is fixed r1299.

Original comment by dan...@transgaming.com on 17 Oct 2012 at 6:50