Unload panorama texture in SkyboxDemo
This commit is contained in:
parent
49871bcd8b
commit
e9220c14df
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue