Closed
Bug 704076
Opened 14 years ago
Closed 7 years ago
Writing mipmaps: texSubImage2D: subtexture rectangle out of bounds
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: xavier, Unassigned)
References
()
Details
Crash Data
User Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111104165243
Steps to reproduce:
I draw a subtexture on a mipmapped texture. I want to draw the texture at the mipmaps levels 0 (original size) and 1. I use texSubImage2D.
GL.texSubImage2D(GL.TEXTURE_2D, 0,0,0, GL.RGB, GL.UNSIGNED_BYTE, myTexture);
GL.texSubImage2D(GL.TEXTURE_2D, 1,0,0, GL.RGB, GL.UNSIGNED_BYTE, mySmallerTexture);
where myTexture and mySmallerTexture are javascript Image objects POT.
Actual results:
The first line works fine : it draw the texture at the mipmap level 0 :)
The second line throw an exception :
WebGL: texSubImage2D: subtexture rectangle out of bounds
I have tested a lot of changes and it did nothing. This is not a problem of mySmallerTexture size nor of (x,y) coordinates, and not a problem with the image format because when I switch myTexture and mySmallerTexture, mySmallerTexture is drawed at the mipmap level 0.
There is no problem with Chromium or with previous version of Firefox (I use Firefox 8.0).
The bug happens with this webgl demo : http://www.spacegoo.com/cadillac
Expected results:
mySmallerTexture should have been drawed at the mipmap level 1.
| Reporter | ||
Updated•14 years ago
|
Crash Signature: WebGL: texSubImage2D: subtexture rectangle out of bounds
Hardware: x86 → x86_64
Whiteboard: Webgl texSubImage2D mipmap bug
Updated•14 years ago
|
Summary: Webgl - texSubImage2D bug in writting mipmaps → WebGL: Writing mipmaps: texSubImage2D: subtexture rectangle out of bounds
Whiteboard: Webgl texSubImage2D mipmap bug
Updated•14 years ago
|
Component: General → Canvas: WebGL
Product: Firefox → Core
QA Contact: general → canvas.webgl
Comment 1•12 years ago
|
||
This seems to behave the same in Firefox and Chromium for me, on Linux.
Is this still a problem?
Flags: needinfo?(xavier)
Summary: WebGL: Writing mipmaps: texSubImage2D: subtexture rectangle out of bounds → Writing mipmaps: texSubImage2D: subtexture rectangle out of bounds
Comment 2•7 years ago
|
||
Closing because no crash reported since 12 weeks.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Comment 3•7 years ago
|
||
Closing because no crash reported since 12 weeks.
Updated•7 years ago
|
Flags: needinfo?(xavier)
You need to log in
before you can comment on or make changes to this bug.
Description
•