From 6bac125253b28245011ed155857dc1c1b3d51dab Mon Sep 17 00:00:00 2001 From: lalaqingla Date: Sun, 8 Mar 2020 10:44:34 +0800 Subject: [PATCH] Update worldsheet.py --- utils/worldsheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/worldsheet.py b/utils/worldsheet.py index c503592..44afe44 100644 --- a/utils/worldsheet.py +++ b/utils/worldsheet.py @@ -45,7 +45,7 @@ def rendering(self,MVP,View,Projection): glBindBuffer(GL_ARRAY_BUFFER, self.linebuffer) glVertexAttribPointer(0,3,GL_FLOAT,GL_FALSE,0,None) - glDrawArrays(GL_LINES , 0, len(self.lines)/3) # 12*3 indices starting at 0 -> 12 triangles + glDrawArrays(GL_LINES , 0, len(self.lines)) # 12*3 indices starting at 0 -> 12 triangles glDisableVertexAttribArray(0) self.shader.end()