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:
Anthony Ramine 2018-04-04 16:22:28 +02:00
parent fc6335c01d
commit 7b4d66b621
3 changed files with 5 additions and 4 deletions

View file

@ -170,7 +170,7 @@ pub enum WebGLCommand {
BufferSubData(u32, isize, ByteBuf),
Clear(u32),
ClearColor(f32, f32, f32, f32),
ClearDepth(f64),
ClearDepth(f32),
ClearStencil(i32),
ColorMask(bool, bool, bool, bool),
CullFace(u32),