Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] OpenGL error ,try pip install PyOpenGL #39

Open
jivaklong opened this issue Jun 26, 2023 · 2 comments
Open

[BUG] OpenGL error ,try pip install PyOpenGL #39

jivaklong opened this issue Jun 26, 2023 · 2 comments

Comments

@jivaklong
Copy link

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
Copy link
Author

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

@joisonwk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants