mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add utility for deleting sync object without throwing
PiperOrigin-RevId: 547138887
This commit is contained in:
parent
9b06da8174
commit
f657fa8048
1 changed files with 6 additions and 0 deletions
|
|
@ -407,6 +407,12 @@ public final class GlUtil {
|
||||||
checkGlError();
|
checkGlError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Releases the GL sync object if set, suppressing any error. */
|
||||||
|
public static void deleteSyncObjectQuietly(long syncObject) {
|
||||||
|
// glDeleteSync ignores a 0-valued sync object.
|
||||||
|
GLES30.glDeleteSync(syncObject);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ensures that following commands on the current OpenGL context will not be executed until the
|
* Ensures that following commands on the current OpenGL context will not be executed until the
|
||||||
* sync point has been reached. If {@code syncObject} equals {@code 0}, this does not block the
|
* sync point has been reached. If {@code syncObject} equals {@code 0}, this does not block the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue