mirror of
https://github.com/servo/servo.git
synced 2025-07-05 14:33:38 +01:00
Fix the emitted error for invalid targets in WebGLRenderingContext::BufferData_
This commit is contained in:
parent
235a7b80c9
commit
e7f716de12
1 changed files with 1 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
let bound_buffer = handle_potential_webgl_error!(self, self.bound_buffer(target), return Ok(()));
|
||||
let bound_buffer = match bound_buffer {
|
||||
Some(bound_buffer) => bound_buffer,
|
||||
None => return Ok(self.webgl_error(InvalidValue)),
|
||||
None => return Ok(self.webgl_error(InvalidOperation)),
|
||||
};
|
||||
|
||||
if size < 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue