marlgrid
marlgrid copied to clipboard
"gl" not defined error (probably resolved but need verification)
in "marlgrid/utils"; the rendering.py file has errors.
gl.glTexParameteri(gl.GL_TEXTURE_2D,
gl.GL_TEXTURE_MAG_FILTER, gl.GL_NEAREST)
Following are the imports from original repo:-
import pyglet
from pyglet.gl import *
import sys
and I updated it:-
import pyglet
from pyglet.gl import *
import sys
from OpenGL.GL import *
from OpenGL.GLU import *
import OpenGL.GL as gl
this resolved the problem (just no errors as of now) ig. But still I dont know as I have not been able to run the project. i guess it needed pyglet to be installed