Home | History | Annotate | Download | only in gl

Lines Matching refs:surface

72 bool GLContextWGL::MakeCurrent(GLSurface* surface) {
74 if (IsCurrent(surface))
79 if (!wglMakeCurrent(static_cast<HDC>(surface->GetHandle()), context_)) {
87 SetCurrent(surface);
89 ReleaseCurrent(surface);
93 if (!surface->OnMakeCurrent(this)) {
101 void GLContextWGL::ReleaseCurrent(GLSurface* surface) {
102 if (!IsCurrent(surface))
109 bool GLContextWGL::IsCurrent(GLSurface* surface) {
121 if (surface) {
122 if (wglGetCurrentDC() != surface->GetHandle())