DragGAN
DragGAN copied to clipboard
[BUG] OpenGL error ,try pip install PyOpenGL
I try it: export MESA_GL_VERSION_OVERRIDE=3.3. But the following error still occurred, My computer is configured with MAC 2.4 GHz 8-core Intel Core i9
raise self._errorClass(
OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glGetUniformLocation, cArguments = (1, b'Texture\x00'), result = -1 )
Add these lines of code before create window In gui_util>glfw_window.py>line 35
glfw.window_hint(glfw.CONTEXT_VERSION_MAJOR, 3)
glfw.window_hint(glfw.CONTEXT_VERSION_MINOR, 3)
glfw.window_hint(glfw.OPENGL_FORWARD_COMPAT, GL_TRUE)
glfw.window_hint(glfw.OPENGL_PROFILE, glfw.OPENGL_CORE_PROFILE)
But not work error still occurred
Try it: export MESA_GL_VERSION_OVERRIDE=3.3. It works for me.