DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

[BUG] OpenGL error ,try pip install PyOpenGL

Open jivaklong opened this issue 2 years ago • 2 comments

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 )

jivaklong avatar Jun 26 '23 04:06 jivaklong

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

jivaklong avatar Jun 26 '23 04:06 jivaklong

Try it: export MESA_GL_VERSION_OVERRIDE=3.3. It works for me.

joisonwk avatar Jun 26 '23 09:06 joisonwk