Use specific assertion for webgl thread

This commit is contained in:
CYBAI 2018-01-25 23:45:16 +08:00
parent cde99646a6
commit 1ca913168d

View file

@ -884,7 +884,7 @@ impl WebGLImpl {
// TODO: update test expectations in order to enable debug assertions
//if cfg!(debug_assertions) {
let error = ctx.gl().get_error();
assert!(error == gl::NO_ERROR, "Unexpected WebGL error: 0x{:x} ({})", error, error);
assert_eq!(error, gl::NO_ERROR, "Unexpected WebGL error: 0x{:x} ({})", error, error);
//}
}