marlgrid icon indicating copy to clipboard operation
marlgrid copied to clipboard

"gl" not defined error (probably resolved but need verification)

Open tripathi-abhishek opened this issue 3 years ago • 0 comments

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

tripathi-abhishek avatar Apr 03 '21 07:04 tripathi-abhishek