File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Plugins/Stereolabs/Source/Stereolabs/Private/Core Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ void USlTexture::BP_UpdateTextureWithMat(const FSlMat& NewMat)
143
143
144
144
void USlTexture::UpdateTexture ()
145
145
{
146
+ if (!Mat.Mat ) return ;
147
+
146
148
if (!bCudaInteropEnabled)
147
149
{
148
150
sl_mat_update_cpu_from_gpu (Mat.Mat );
@@ -177,6 +179,8 @@ void USlTexture::UpdateTexture()
177
179
178
180
void USlTexture::UpdateTexture (const FSlMat& NewMat)
179
181
{
182
+ if (!NewMat.Mat ) return ;
183
+
180
184
if (!bCudaInteropEnabled)
181
185
{
182
186
sl_mat_update_cpu_from_gpu (NewMat.Mat );
@@ -211,6 +215,8 @@ void USlTexture::UpdateTexture(const FSlMat& NewMat)
211
215
212
216
void USlTexture::UpdateTexture (void * NewMat)
213
217
{
218
+ if (!NewMat) return ;
219
+
214
220
if (!bCudaInteropEnabled)
215
221
{
216
222
sl_mat_update_cpu_from_gpu (NewMat);
You can’t perform that action at this time.
0 commit comments