Properly clamp arguments to WebGLRenderingContext.depthRange

This commit is contained in:
Anthony Ramine 2018-04-04 17:14:53 +02:00
parent 7b4d66b621
commit fb290e9c9e
3 changed files with 6 additions and 10 deletions

View file

@ -177,7 +177,7 @@ pub enum WebGLCommand {
FrontFace(u32),
DepthFunc(u32),
DepthMask(bool),
DepthRange(f64, f64),
DepthRange(f32, f32),
Enable(u32),
Disable(u32),
CompileShader(WebGLShaderId, String),