Skip to content

Commit

Permalink
fix(sdk): set GlTextureBuffer's shared pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Dec 14, 2020
1 parent 6d56f99 commit 5bc68c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/MediaPipe/SDK/Scripts/Gpu/GlTextureBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ public class GlTextureBuffer : MpResourceHandle {
UnsafeNativeMethods.mp_SharedGlTextureBuffer__ui_ui_i_i_ui_PF_PSgc(
target, name, width, height, format, callback, sharedContextPtr, out var ptr).Assert();

this.ptr = ptr;
sharedPtrHandle = new SharedPtr(ptr);
this.ptr = sharedPtrHandle.Get();
}

public GlTextureBuffer(UInt32 name, int width, int height, GpuBufferFormat format, DeletionCallback callback, GlContext glContext = null) :
Expand Down

0 comments on commit 5bc68c7

Please sign in to comment.