[PyOpenGL-Users] "Attempt to retrieve context when no valid context" when calling glVertexAttribPoi
Brought to you by:
mcfletch
From: JP L. <jpl...@gm...> - 2018-01-02 07:33:52
|
I have a program (http://vectorpoem.com/playscii) that's been running nicely with PyOpenGL on x86 Linux, macOS, and Windows for a few years now, and I'm now attempting to get it running on a Raspberry Pi 3 (using the Raspbian OpenGL driver). Until now this process was pretty straightforward, tweaking shaders and providing a render path for non-VAO hardware, but I've now hit a crash I don't understand and can't figure out how to debug. Deep into program initialization, I'm setting up some vertex buffers, and get a crash whose final line is "OpenGL.error.Error: Attempt to retrieve context when no valid context" when calling glVertexAttribPointer. See the full log here; my program first logs info about the hardware and the OpenGL context it creates (via PySDL2), followed by the crash: https://gist.github.com/JPLeBreton/782b92872380ee6ab3b11b3954ca56cd The OpenGL render context is definitely present; I tried logging stuff about it just before the glVertexAttribPointer call and as far as I can tell it's valid right up until that point. For what it's worth that call does appear to be the first (of many) in the program's execution. Happy to provide more info as needed. Thanks. |