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

Unload panorama texture in SkyboxDemo

This commit is contained in:
Rgebee 2023-09-17 13:31:10 +01:00
commit e9220c14df

View file

@ -93,6 +93,7 @@ public class SkyboxDemo
PixelFormat.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
);
SetMaterialTexture(ref skybox, 0, MaterialMapIndex.MATERIAL_MAP_CUBEMAP, ref cubemap);
UnloadTexture(panorama);
}
else
{
@ -136,6 +137,7 @@ public class SkyboxDemo
PixelFormat.PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
);
SetMaterialTexture(ref skybox, 0, MaterialMapIndex.MATERIAL_MAP_CUBEMAP, ref cubemap);
UnloadTexture(panorama);
}
else
{