Watch
2
0
Fork
You've already forked raylib-cs
0

UnloadMesh needs a value, not a pointer

This commit is contained in:
JupiterRider 2024-05-21 17:19:29 +02:00
commit f1a4d4db7a
2 changed files with 1 additions and 10 deletions

View file

@ -2350,7 +2350,7 @@ public static unsafe partial class Raylib
/// <summary>Unload mesh from memory (RAM and/or VRAM)</summary> /// <summary>Unload mesh from memory (RAM and/or VRAM)</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void UnloadMesh(Mesh* mesh); public static extern void UnloadMesh(Mesh mesh);
/// <summary>Draw a 3d mesh with material and transform</summary> /// <summary>Draw a 3d mesh with material and transform</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]

View file

@ -911,15 +911,6 @@ public static unsafe partial class Raylib
} }
} }
/// <summary>Unload mesh from memory (RAM and/or VRAM)</summary>
public static void UnloadMesh(ref Mesh mesh)
{
fixed (Mesh* p = &mesh)
{
UnloadMesh(p);
}
}
/// <summary>Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)</summary> /// <summary>Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)</summary>
public static void SetMaterialTexture(ref Material material, MaterialMapIndex mapType, Texture2D texture) public static void SetMaterialTexture(ref Material material, MaterialMapIndex mapType, Texture2D texture)
{ {