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