added some internal configuration options for global animation properties
[rocksndiamonds.git] / src / init.c
index ca5d16b6be699cbf992e0d0983b8297456ef53b4..209d64be4bcb16e0856186ee913b4da721661934 100644 (file)
@@ -230,6 +230,11 @@ void InitImageTextures()
 {
   int i, j, k;
 
+  FreeAllImageTextures();
+
+  for (i = 0; i < MAX_NUM_TOONS; i++)
+    CreateImageTextures(IMG_TOON_1 + i);
+
   for (i = 0; i < NUM_GLOBAL_ANIMS; i++)
   {
     for (j = 0; j < NUM_GLOBAL_ANIM_PARTS_ALL; j++)
@@ -241,8 +246,7 @@ void InitImageTextures()
        if (graphic == IMG_UNDEFINED)
          continue;
 
-       // (re)create textures from images for fast GPU blitting, if possible
-       ReCreateImageTextures(graphic);
+       CreateImageTextures(graphic);
       }
     }
   }