Small clean up

This commit is contained in:
Grant Sanderson 2023-01-25 09:51:27 -08:00
parent 93dd9f687b
commit 7deaf4cb11

View file

@ -476,12 +476,9 @@ class Camera(object):
if not winding:
vao.render(moderngl.TRIANGLES)
return
self.fill_fbo.clear(0.0, 0.0, 0.0, 0.0)
self.fill_fbo.clear()
self.fill_fbo.use()
self.ctx.blend_func = (
moderngl.ONE, moderngl.ONE,
moderngl.ONE, moderngl.ONE,
)
self.ctx.blend_func = (moderngl.ONE, moderngl.ONE)
vao.render(render_primitive)
self.ctx.blend_func = moderngl.DEFAULT_BLENDING
self.fbo.use()