Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(836)

Issue 2822041: Made GL_RGB textures map to D3DFMT_X8R8G8B8....

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by apatrick1
Modified:
13 years, 5 months ago
Reviewers:
dgkoch, nicolas
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Made GL_RGB textures map to D3DFMT_X8R8G8B8. I suspect there is a subtle reason why this is the wrong thing to do. The issue I am trying to address is glBlitFramebufferANGLE generating an error when bliting from a GL_RGB8_OES renderbuffer to a GL_RGB texture bound to the read framebuffer and draw framebuffer respectively. It verifies that both surfaces have the same underlying D3DFMT but GL_RGB8_OES renderbuffers are backed by X8R8G8B8 and GL_RGB textures were previously backed by A8R8G8B8. Since textures cannot as far as I know be created GL_RGB8_OES, it would be useful to have a way to blit from a GL_RGB8_OES renderbuffer to a GL_RGB texture.

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M src/libGLESv2/Texture.cpp View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 8
apatrick1
Hi Daniel, Can I run this idea by you? Thanks, Al
13 years, 6 months ago (2010-11-01 23:21:55 UTC) #1
dgkoch
haven't forgotten about this. At an initial glance this seems reasonable, but I'm concerned about ...
13 years, 6 months ago (2010-11-09 13:24:32 UTC) #2
nicolas
I verified that D3DFMT_X8R8G8B8 textures are handled correctly. The tests to select it may need ...
13 years, 5 months ago (2010-11-12 17:35:51 UTC) #3
apatrick1
Thanks, Al http://codereview.appspot.com/2822041/diff/1/src/libGLESv2/Texture.cpp File src/libGLESv2/Texture.cpp (right): http://codereview.appspot.com/2822041/diff/1/src/libGLESv2/Texture.cpp#newcode233 src/libGLESv2/Texture.cpp:233: if (format == GL_RGBA || format == ...
13 years, 5 months ago (2010-11-15 21:10:39 UTC) #4
dgkoch
LGTM Daniel
13 years, 5 months ago (2010-11-16 02:00:54 UTC) #5
nicolas
http://codereview.appspot.com/2822041/diff/1/src/libGLESv2/Texture.cpp File src/libGLESv2/Texture.cpp (right): http://codereview.appspot.com/2822041/diff/1/src/libGLESv2/Texture.cpp#newcode233 src/libGLESv2/Texture.cpp:233: if (format == GL_RGBA || format == GL_ALPHA) Indeed, ...
13 years, 5 months ago (2010-11-16 07:04:15 UTC) #6
dgkoch
http://codereview.appspot.com/2822041/diff/1/src/libGLESv2/Texture.cpp File src/libGLESv2/Texture.cpp (right): http://codereview.appspot.com/2822041/diff/1/src/libGLESv2/Texture.cpp#newcode233 src/libGLESv2/Texture.cpp:233: if (format == GL_RGBA || format == GL_ALPHA) On ...
13 years, 5 months ago (2010-11-16 13:27:33 UTC) #7
nicolas
13 years, 5 months ago (2010-11-16 13:37:36 UTC) #8
Ah, sorry, somehow I was looking at the first patch again...

The new patch looks fine to me!
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b