func (context *Context) Destroy() error { success := C.eglDestroyContext(context.Display.eglDisplay, context.eglContext) if success == C.EGL_FALSE { return getError() } return nil }
func DestroyContext(disp Display, ctx Context) bool { return goBoolean(C.eglDestroyContext(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLContext(unsafe.Pointer(ctx)))) }