Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIssue #9097: Don't panic when calling *VertexAttrib* with invalid indices #9102
Conversation
…ices.
|
Review status: 0 of 3 files reviewed at latest revision, 1 unresolved discussion. components/canvas/webgl_paint_task.rs, line 60 [r1] (raw file): I think this is not the best solution though, since this check is needed in the DOM side too, and should generate an error there, instead of silently returning. Normally whenever the WebGL task panics due to a gl error, it means that that error should have been handled in the DOM side. As a quick fix, we could make these calls synchronous, and return a WebGLResult, but long term it's probably more efficient to make a It'd be a good idea to add it to https://github.com/ecoal95/rust-offscreen-rendering-context/, so it can be re-used, over all in WebRender (don't forget to derive For now it could just have a single member ( Comments from the review on Reviewable.io |
|
components/canvas/webgl_paint_task.rs, line 60 [r1] (raw file): Comments from the review on Reviewable.io |
|
components/canvas/webgl_paint_task.rs, line 60 [r1] (raw file): Comments from the review on Reviewable.io |
|
|
|
It's waiting changes from @simartin, I initially forgot to update the labels when reviewing, I'll do it now :) |
|
I filed #9958 to keep track of this work. Feel free to reopen this PR if you want to keep working on it! |
simartin commentedDec 30, 2015
Fixes #9097