mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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);
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
}
|
||||
</script>
|
||||
<script id="fragmentshader" type="x-shader">
|
||||
#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
precision mediump float;
|
||||
|
||||
varying vec4 aVertexColor;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue