示例#1
0
文件: context.go 项目: foobaz/egl
func (context *Context) Destroy() error {
	success := C.eglDestroyContext(context.Display.eglDisplay, context.eglContext)
	if success == C.EGL_FALSE {
		return getError()
	}
	return nil
}
示例#2
0
文件: egl.go 项目: nick-fedesna/egles
func DestroyContext(disp Display, ctx Context) bool {
	return goBoolean(C.eglDestroyContext(C.EGLDisplay(unsafe.Pointer(disp)),
		C.EGLContext(unsafe.Pointer(ctx))))
}