eglDestroyContext function

void eglDestroyContext(
  1. Pointer<Void> display,
  2. Pointer<Void> context
)

Implementation

void eglDestroyContext(
  Pointer<Void> display,
  Pointer<Void> context,
) {
  final nativeCallResult = _libEGL!.eglDestroyContext(display, context) == 1;

  if (nativeCallResult) {
    return;
  }

  throw EglException(
      'Failed to destroy context [$display], surface [$context].');
}