mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Use WebGLResult for returns of instanced draw methods
This commit is contained in:
parent
5063ac465b
commit
0579fbe4fa
3 changed files with 43 additions and 50 deletions
|
@ -961,7 +961,10 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
count: i32,
|
||||
primcount: i32,
|
||||
) {
|
||||
self.base.draw_arrays_instanced(mode, first, count, primcount);
|
||||
handle_potential_webgl_error!(
|
||||
self.base,
|
||||
self.base.draw_arrays_instanced(mode, first, count, primcount)
|
||||
)
|
||||
}
|
||||
|
||||
/// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.9
|
||||
|
@ -973,7 +976,10 @@ impl WebGL2RenderingContextMethods for WebGL2RenderingContext {
|
|||
offset: i64,
|
||||
primcount: i32,
|
||||
) {
|
||||
self.base.draw_elements_instanced(mode, count, type_, offset, primcount);
|
||||
handle_potential_webgl_error!(
|
||||
self.base,
|
||||
self.base.draw_elements_instanced(mode, count, type_, offset, primcount)
|
||||
)
|
||||
}
|
||||
|
||||
/// https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue