{
struct glx_context * gc = __glXGetCurrentContext();
- if (gc && apple_glx_context_uses_stereo(gc->driContext)) {
+ if (gc != &dummyContext && apple_glx_context_uses_stereo(gc->driContext)) {
GLenum buf[2];
GLsizei n = 0;
{
struct glx_context * gc = __glXGetCurrentContext();
- if (gc && apple_glx_context_uses_stereo(gc->driContext)) {
+ if (gc != &dummyContext && apple_glx_context_uses_stereo(gc->driContext)) {
GLenum newbuf[n + 2];
GLsizei i, outi = 0;
bool have_back = false;