Home | History | Annotate | Download | only in gl

Lines Matching refs:surface

72 bool GLContextWGL::MakeCurrent(GLSurface* surface) {
74 if (IsCurrent(surface))
80 if (!wglMakeCurrent(static_cast<HDC>(surface->GetHandle()), context_)) {
88 SetCurrent(surface);
93 if (!surface->OnMakeCurrent(this)) {
102 void GLContextWGL::ReleaseCurrent(GLSurface* surface) {
103 if (!IsCurrent(surface))
110 bool GLContextWGL::IsCurrent(GLSurface* surface) {
122 if (surface) {
123 if (wglGetCurrentDC() != surface->GetHandle())