Hi,
I am running an app in an PyQt QGLWidget. If the window is minimized, and
the method for rendering the object that should be displayed is called, I
get the error 'OpenGL.error.Error: Attempt to retrieve context when no
valid context' (included below), when glColorPointerd() is called.
Is there:
* a way to check whether a valid context is set?
* force the context to be set?
Best regards,
Mads
glColorPointerd(colors)
File
"/home/mpi/svn/quantumconnect/external-libs/build/lib/python2.6/site-packages/OpenGL/wrapper.py",
line 410, in wrapperCall
cArgs,
File
"/home/mpi/svn/quantumconnect/external-libs/build/lib/python2.6/site-packages/OpenGL/arrays/arrayhelpers.py",
line 66, in __call__
contextdata.setValue( self.constant, pyArgs[self.pointerIndex] )
File
"/home/mpi/svn/quantumconnect/external-libs/build/lib/python2.6/site-packages/OpenGL/contextdata.py",
line 49, in setValue
context = getContext( context )
File
"/home/mpi/svn/quantumconnect/external-libs/build/lib/python2.6/site-packages/OpenGL/contextdata.py",
line 32, in getContext
"""Attempt to retrieve context when no valid context"""
OpenGL.error.Error: Attempt to retrieve context when no valid context
|