Daniel, I extracted this from the managed texture patch I sent yesterday. It is a ...
13 years, 3 months ago
(2011-01-27 20:49:24 UTC)
#1
Daniel,
I extracted this from the managed texture patch I sent yesterday. It is a bug.
The reason it was not apparent for typical WebGL apps is a little complicated.
Chrome implements glTexImage2D as multiple calls to glTexSubImage2D with
subrectangles. This is so we can ship the texel data for large textures through
a relatively small shared memory buffer in smaller chunks.
At this point, the video memory D3D texture has not been allocated so
commitRect() has no effect (levelCount() returns 0 because mBaseTexture is
null). It is only when getTexture() is called that the texel data is uploaded to
the video memory texture and this just uploads the whole surface, not the
individual rectangles. So it didn't matter that the sub-rectangles used in
commitRect were wrong.
Please review.
Thanks,
Al
Daniel, I extracted this from the managed texture patch I sent yesterday. It is a ...
13 years, 3 months ago
(2011-01-27 20:49:33 UTC)
#2
Daniel,
I extracted this from the managed texture patch I sent yesterday. It is a bug.
The reason it was not apparent for typical WebGL apps is a little complicated.
Chrome implements glTexImage2D as multiple calls to glTexSubImage2D with
subrectangles. This is so we can ship the texel data for large textures through
a relatively small shared memory buffer in smaller chunks.
At this point, the video memory D3D texture has not been allocated so
commitRect() has no effect (levelCount() returns 0 because mBaseTexture is
null). It is only when getTexture() is called that the texel data is uploaded to
the video memory texture and this just uploads the whole surface, not the
individual rectangles. So it didn't matter that the sub-rectangles used in
commitRect were wrong.
Please review.
Thanks,
Al
Issue 4047050: Fixed commitRect so it correctly flips the source rectangle and dest point on...
(Closed)
Created 13 years, 3 months ago by apatrick1
Modified 13 years, 3 months ago
Reviewers: dgkoch
Base URL: http://angleproject.googlecode.com/svn/trunk/
Comments: 0