Add better Texture initialization API with custom data

This commit is contained in:
Wojtek Figat
2023-06-15 12:14:23 +02:00
parent 329a6ce0ef
commit fea4b3fcba
3 changed files with 56 additions and 9 deletions

View File

@@ -176,7 +176,7 @@ namespace FlaxEngine
}
// Call backend
if (Internal_Init(__unmanagedPtr, new IntPtr(&t)))
if (Internal_InitCSharp(__unmanagedPtr, new IntPtr(&t)))
throw new Exception("Failed to init texture data.");
}
}