Skip to content

X Error of failed request: GLXBadDrawable #32

@MarioGavran

Description

@MarioGavran

I am using Debian 11, X11, PyCharm, Python 3.9
I tried to run this simple program:

    import tkinter as tk

    from OpenGL.GL import *

    from OpenGL.GLU import *

    from pyopengltk import OpenGLFrame

    class GLFrame(OpenGLFrame):
        def initgl(self):
            glViewport(0, 0, self.width, self.height)
            glClearColor(0.5, 0.5, 0.5, 1.0)
        
        def redraw(self):
            glClear(GL_COLOR_BUFFER_BIT)

    root = tk.Tk()

    root.title("Example")

    glFrame = GLFrame(width=640, height=480)

    glFrame.pack(expand=True, fill=tk.BOTH)

    root.mainloop()

this is the output:

GLX version: 1.4
Screen is  0
Number of FBconfigs 66
Got a matching visual: index 3 33 xid 0x21
Is Direct?:  1
X Error of failed request:  GLXBadDrawable
    Major opcode of failed request:  151 (GLX)
    Minor opcode of failed request:  26 (X_GLXMakeContextCurrent)
    Serial number of failed request:  38
    Current serial number in output stream:  38

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions