mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-03-01 03:30:04 +00:00
Unload textures at proper moments.
This commit is contained in:
parent
2db272f368
commit
3f77c7cade
@ -74,6 +74,7 @@ predef playerDeath()#0
|
|||||||
predef startGame(firstTime, ask)#0
|
predef startGame(firstTime, ask)#0
|
||||||
predef showAnimFrame()#0
|
predef showAnimFrame()#0
|
||||||
predef showParty()#0
|
predef showParty()#0
|
||||||
|
predef unloadTextures()#0
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Global variables
|
// Global variables
|
||||||
@ -1804,10 +1805,7 @@ export def loadFrameImg(img)#0
|
|||||||
clearPortrait()
|
clearPortrait()
|
||||||
|
|
||||||
// Make room in aux mem by throwing out textures
|
// Make room in aux mem by throwing out textures
|
||||||
if renderLoaded
|
unloadTextures()
|
||||||
flipToPage1()
|
|
||||||
texControl(0)
|
|
||||||
fin
|
|
||||||
|
|
||||||
// Load the image data into aux mem
|
// Load the image data into aux mem
|
||||||
if img
|
if img
|
||||||
@ -2196,7 +2194,7 @@ end
|
|||||||
// Load code and data, set up everything to display a 2D or 3D map
|
// Load code and data, set up everything to display a 2D or 3D map
|
||||||
def initMap(x, y, dir)#0
|
def initMap(x, y, dir)#0
|
||||||
// If we have a renderer loaded, let it know to flush automap marks
|
// If we have a renderer loaded, let it know to flush automap marks
|
||||||
if renderLoaded; texControl(0); fin
|
unloadTextures()
|
||||||
|
|
||||||
// Reset memory (our module will stay since memory manager locked it upon load)
|
// Reset memory (our module will stay since memory manager locked it upon load)
|
||||||
mmgr(RESET_MEMORY, 0)
|
mmgr(RESET_MEMORY, 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user