Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-05-22 18:20:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-05-22 18:20:18 +0400
commit26e60db6b519883e022dcd8b6749cfb11f00cd25 (patch)
tree91b0ff768f5917f2711e1ce9f50348abd97ebb7b /source/blender/src/headerbuttons.c
parentbc2ad537ed582ae866b7d3d2277165af8ebd3fd5 (diff)
option to limit the size of textures loaded into GL memory, usefull when a scene's models wont fit into GFX memory.
Diffstat (limited to 'source/blender/src/headerbuttons.c')
-rw-r--r--source/blender/src/headerbuttons.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/src/headerbuttons.c b/source/blender/src/headerbuttons.c
index f079294c81a..7685ec99b2e 100644
--- a/source/blender/src/headerbuttons.c
+++ b/source/blender/src/headerbuttons.c
@@ -1341,6 +1341,10 @@ void do_global_buttons(unsigned short event)
set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP));
allqueue(REDRAWVIEW3D, 0);
break;
+ case B_GLRESLIMITCHANGED:
+ free_all_realtime_images(); /* force reloading with new res limit */
+ allqueue(REDRAWVIEW3D, 0);
+ break;
case B_NEWSPACE:
newspace(curarea, curarea->butspacetype);
break;