mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
webgl: Add correct error handling to BufferSubData
From the WebGL spec: > If data is null then an INVALID_VALUE error is generated.
This commit is contained in:
parent
89b65f3a02
commit
a14b605c8e
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
let data = match data {
|
let data = match data {
|
||||||
Some(data) => data,
|
Some(data) => data,
|
||||||
None => return,
|
None => return self.webgl_error(InvalidValue),
|
||||||
};
|
};
|
||||||
if offset < 0 {
|
if offset < 0 {
|
||||||
return self.webgl_error(InvalidValue);
|
return self.webgl_error(InvalidValue);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue