WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 126538
94300
[GTK] three.js example webgl_terrain_dynamic.html doesn't work
https://bugs.webkit.org/show_bug.cgi?id=94300
Summary
[GTK] three.js example webgl_terrain_dynamic.html doesn't work
Tomeu Vizoso
Reported
2012-08-16 23:33:26 PDT
The animation doesn't appear once the textures finish loading, here is a link for easier testing:
http://mrdoob.github.com/three.js/examples/webgl_terrain_dynamic.html
It works fine on Chrome.
Attachments
Patch
(1.50 KB, patch)
2012-09-06 02:59 PDT
,
Tomeu Vizoso
mrobinson
: review-
Details
Formatted Diff
Diff
testcase
(4.03 KB, text/html)
2012-09-11 15:18 PDT
,
arno.
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Tomeu Vizoso
Comment 1
2012-09-06 02:59:04 PDT
Created
attachment 162460
[details]
Patch
Martin Robinson
Comment 2
2012-09-06 06:02:47 PDT
Comment on
attachment 162460
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=162460&action=review
> Source/WebCore/ChangeLog:11 > + No new tests (OOPS!).
This change really needs a test of some kind, I think.
Tomeu Vizoso
Comment 3
2012-09-07 04:15:09 PDT
(In reply to
comment #2
)
> (From update of
attachment 162460
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=162460&action=review
> > > Source/WebCore/ChangeLog:11 > > + No new tests (OOPS!). > > This change really needs a test of some kind, I think.
It's probably take a while until I find time to do that, in case someone else wants to take this and push it forward.
Martin Robinson
Comment 4
2012-09-07 18:36:21 PDT
I can confirm that this fixes
http://hexgl.bkcore.com
as well.
arno.
Comment 5
2012-09-07 20:25:05 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 162460
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=162460&action=review
> > > > > Source/WebCore/ChangeLog:11 > > > + No new tests (OOPS!). > > > > This change really needs a test of some kind, I think. > > It's probably take a while until I find time to do that, in case someone else wants to take this and push it forward.
I've already isoled a minimal testcase (which I can't upload now since it's on another computer). I'll try to evolve it into a proper test new week.
arno.
Comment 6
2012-09-11 15:18:29 PDT
Created
attachment 163454
[details]
testcase Hi, here is a testcase. when I put it in LayoutTests/fast/canvas/webgl, and display it with Tools/Scripts/run-launcher --gtk file:///home/arno/webkit/WebKit.upstream/LayoutTests/fast/canvas/webgl/webgl-doubleframebuffer.html --enable-webgl I can check that it fails on trunk but suceeds with your patch. Unfortunately, when I try to run it with ./Tools/Scripts/run-webkit-tests --gtk --force fast/canvas/webgl/webgl-doubleframebuffer.html it fails, so can you check this test it on your systems ? --- About the test failure, there is the following error CONSOLE MESSAGE: line 24: *** Error loading shader '[object WebGLShader]':INVALID_OPERATION CONSOLE MESSAGE: line 24: *** Error compiling shader '[object WebGLShader]': CONSOLE MESSAGE: line 239: TypeError: 'null' is not an object (evaluating 'gl.createBuffer') FAIL successfullyParsed should be true (of type boolean). Was undefined (of type undefined). actually, gl.getError() is already INVALID_OPERATION just after gl.getContext() This is true also in other webgl tests, but it does not trigger an exception (because the first gl.getError() test appear at other moments). My guess is, it could be a bug of my driver (ati catalyst) with Xvfb.
Martin Robinson
Comment 7
2012-09-11 15:20:11 PDT
(In reply to
comment #6
)
> actually, gl.getError() is already INVALID_OPERATION just after gl.getContext() > This is true also in other webgl tests, but it does not trigger an exception (because the first gl.getError() test appear at other moments). My guess is, it could be a bug of my driver (ati catalyst) with Xvfb.
Perhaps the WebGL WebKitWebSetting is not enabled in DumpRenderTree?
arno.
Comment 8
2012-09-11 15:58:19 PDT
(In reply to
comment #7
)
> (In reply to
comment #6
) > > > actually, gl.getError() is already INVALID_OPERATION just after gl.getContext() > > This is true also in other webgl tests, but it does not trigger an exception (because the first gl.getError() test appear at other moments). My guess is, it could be a bug of my driver (ati catalyst) with Xvfb. > > Perhaps the WebGL WebKitWebSetting is not enabled in DumpRenderTree?
But the other tests run fine; and getContext returns a webgl context (with a non getError). I could check with printf-debug that: webgl settings are enabled during the test. At some point (in WebGLRenderingContext::initVertexAttrib0), a buffer is created with: GLuint o = 0; glGenBuffers(1, &o); And after glGenBuffers, o is 0 and glGetError is GL_NO_ERROR. Following call to glBufferData will trigger an error because:
http://www.opengl.org/sdk/docs/man/xhtml/glBufferData
. GL_INVALID_OPERATION is generated if the reserved buffer object name 0 is bound to target.
Martin Robinson
Comment 9
2014-04-08 16:17:13 PDT
*** This bug has been marked as a duplicate of
bug 126538
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug