Skip to content

Commit 7380ea8

Browse files
committed
Merge branch 'master' of github.com:Contraz/demosys-py
2 parents 781dddc + daadcb2 commit 7380ea8

File tree

1 file changed

+2
-2
lines changed
  • demosys/effect_templates/cube_simple

1 file changed

+2
-2
lines changed

demosys/effect_templates/cube_simple/effect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import moderngl as mgl
12
from demosys.effects import effect
23
from demosys import geometry
3-
from OpenGL import GL
44
# from pyrr import matrix44
55

66

@@ -12,7 +12,7 @@ def __init__(self):
1212

1313
@effect.bind_target
1414
def draw(self, time, frametime, target):
15-
GL.glEnable(GL.GL_DEPTH_TEST)
15+
self.ctx.enable(mgl.DEPTH_TEST)
1616

1717
# Rotate and translate
1818
m_mv = self.create_transformation(rotation=(time * 1.2, time * 2.1, time * 0.25),

0 commit comments

Comments
 (0)