xuxiandi / angleproject

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

glCopyTexImage2D does not respect BGRA extensions. #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Construct a texture with a BGRA format.
2.  Bind said texture as the colour buffer of a framebuffer object.
3.  Bind the framebuffer object as the read framebuffer.
4.  Attempt to perform a glCopyTexImage2D call.

What is the expected output? What do you see instead?

If the BGRA extension is supported, then glCopyTexImage should be able to 
succeed.

The routine explicitly allows RGBA-ordered formats, but does not include any 
BGRA enumerations:
http://www.google.com/codesearch#OAMlx_jo-ck/src/third_party/angle/src/libGLESv2
/libGLESv2.cpp&exact_package=chromium&q=copyteximage2d%20angle&type=cs&l=1154

Original issue reported on code.google.com by twiz@chromium.org on 7 Dec 2011 at 7:46

GoogleCodeExporter commented 9 years ago

Original comment by vange...@google.com on 7 Dec 2011 at 8:50

GoogleCodeExporter commented 9 years ago
This is by design.  There are no extensions supported (or defined for that 
matter) which add support for this.
The 
http://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_format_BGRA8888.
txt extension (which ANLGE does support) only adds support for TexImage2D / 
TexSubImage2D.  

Support could be added, but that will require a new extension.

Original comment by dan...@transgaming.com on 7 Dec 2011 at 9:24

GoogleCodeExporter commented 9 years ago

Original comment by c...@chromium.org on 7 Dec 2013 at 4:07

GoogleCodeExporter commented 9 years ago
Works as intended. A new issue can be opened if an extension is proposed.

Original comment by c...@chromium.org on 21 May 2014 at 4:50