public void MakeCurrent(EglContext context, EglSurface surface) { bool make = NativeMethods.eglMakeCurrent(this.m_ptr, surface.Ptr, surface.Ptr, context.Ptr); if (!make) { throw new Exception("Can't make current: " + NativeMethods.eglGetError()); } }
public void MakeCurrent(EglSurface surface) { this.m_display.MakeCurrent(this, surface); }