We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6988eff commit 230e100Copy full SHA for 230e100
1 file changed
arcade/gl/framebuffer.py
@@ -398,7 +398,11 @@ def clear(
398
gl.glClearColor(*clear_color)
399
400
if self.depth_attachment:
401
- gl.glClearDepth(depth)
+ if self._ctx.gl_api == "gl":
402
+ gl.glClearDepth(depth)
403
+ else: # gles only supports glClearDepthf
404
+ gl.glClearDepthf(depth)
405
+
406
gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT)
407
else:
408
gl.glClear(gl.GL_COLOR_BUFFER_BIT)
0 commit comments