Skip to content

Commit 1082009

Browse files
committed
use mgl in wavefront module
1 parent 8bf8a7d commit 1082009

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demosys/scene/loaders/wavefront.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import moderngl as mgl
12
import numpy
23
from .base import SceneLoader
34
import pywavefront
@@ -37,7 +38,7 @@ def load(self, scene, file=None):
3738

3839
vbo = numpy.array(mat.vertices, dtype=numpy.float32)
3940

40-
vao = VAO(mat.name, mode=GL.GL_TRIANGLES)
41+
vao = VAO(mat.name, mode=mgl.TRIANGLES)
4142
mesh = Mesh(mat.name)
4243

4344
# Order: T2F, C3F, N3F and V3F

0 commit comments

Comments
 (0)