Skip to content

Commit a38f384

Browse files
committed
release shared texture at render thread on destroy
1 parent 216d0fe commit a38f384

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libwebview/src/main/java/com/tlab/libwebview/UnityConnect.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,9 @@ public void onReceive(Context context, Intent intent) {
715715
}
716716

717717
/**
718-
*
718+
* I need to call this function on unity's render thread because
719+
* releaseSharedTexture() call GLES or Vulkan function and it
720+
* needs to be called on render thread.
719721
*/
720722
public void Destroy() {
721723

0 commit comments

Comments
 (0)