Lines Matching refs:old_cs
421 gl_set_current_context(OpenGLContextStateP new_cs, OpenGLContextStateP old_cs)
429 if (old_cs) {
430 if (old_cs == new_cs)
432 gl_get_current_context(old_cs);
433 if (old_cs->display == new_cs->display &&
434 old_cs->window == new_cs->window &&
435 old_cs->context == new_cs->context)
874 struct OpenGLContextState old_cs, *new_cs;
876 gl_get_current_context(&old_cs);
877 new_cs = gl_create_context(ctx, &old_cs);
890 gl_set_current_context(&old_cs, NULL);
904 struct OpenGLContextState old_cs, *new_cs;
909 if (!gl_set_current_context(new_cs, &old_cs))
915 gl_set_current_context(&old_cs, NULL);
1037 struct OpenGLContextState old_cs;
1041 if (!gl_set_current_context(pSurfaceGLX->gl_context, &old_cs))
1046 gl_set_current_context(&old_cs, NULL);