eglMakeCurrent function

void eglMakeCurrent(
  1. Pointer<Void> display,
  2. Pointer<Void> draw,
  3. Pointer<Void> read,
  4. Pointer<Void> context,
)

Implementation

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

  if (nativeCallResult) {
    return;
  }

  throw EglException('Failed to make current using display [$display], draw [$draw], read [$read], context [$context].');
}