mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Manually clamp the argument of WebGLRenderingContext.clearDepth
Better be safe than to feed stuff to some GPU driver that wouldn't clamp it.
This commit is contained in:
parent
fc6335c01d
commit
7b4d66b621
3 changed files with 5 additions and 4 deletions
|
@ -1876,7 +1876,7 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
|
|||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
|
||||
fn ClearDepth(&self, depth: f32) {
|
||||
self.send_command(WebGLCommand::ClearDepth(depth as f64))
|
||||
self.send_command(WebGLCommand::ClearDepth(depth))
|
||||
}
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue