mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +01:00
webgl: Remove unneeded return value.
This commit is contained in:
parent
466c8881de
commit
8d7ee15ace
1 changed files with 4 additions and 1 deletions
|
@ -138,6 +138,9 @@ impl WebGLRenderingContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn webgl_error(&self, err: WebGLError) {
|
pub fn webgl_error(&self, err: WebGLError) {
|
||||||
|
// TODO(emilio): Add useful debug messages to this
|
||||||
|
warn!("WebGL error: {:?}, previous error was {:?}", err, self.last_error.get());
|
||||||
|
|
||||||
// If an error has been detected no further errors must be
|
// If an error has been detected no further errors must be
|
||||||
// recorded until `getError` has been called
|
// recorded until `getError` has been called
|
||||||
if self.last_error.get().is_none() {
|
if self.last_error.get().is_none() {
|
||||||
|
@ -154,7 +157,7 @@ impl WebGLRenderingContext {
|
||||||
if let Some(texture) = texture {
|
if let Some(texture) = texture {
|
||||||
handle_potential_webgl_error!(self, texture.tex_parameter(target, name, value));
|
handle_potential_webgl_error!(self, texture.tex_parameter(target, name, value));
|
||||||
} else {
|
} else {
|
||||||
return self.webgl_error(InvalidOperation);
|
self.webgl_error(InvalidOperation)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue