mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #8876 - ecoal95:webgl-nits, r=jdm
WebGL nits This improves support for running our triangle test (see: https://github.com/servo/servo/pull/8831), and adds missing error in `BufferSubData` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8876) <!-- Reviewable:end -->
This commit is contained in:
commit
9cccd34bc4
2 changed files with 2 additions and 4 deletions
|
@ -417,7 +417,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
}
|
||||
let data = match data {
|
||||
Some(data) => data,
|
||||
None => return,
|
||||
None => return self.webgl_error(InvalidValue),
|
||||
};
|
||||
if offset < 0 {
|
||||
return self.webgl_error(InvalidValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue