+static void CreateImageTexturesExt(int pos, boolean force)
+{
+ ImageInfo *img_info = getImageInfoEntryFromImageID(pos);
+
+ if (img_info == NULL || (img_info->contains_textures && !force))
+ return;
+
+ CreateBitmapTextures(img_info->bitmaps);
+
+ img_info->contains_textures = TRUE;
+}
+
+void CreateImageTextures(int pos)
+{
+ CreateImageTexturesExt(pos, FALSE);
+}
+
+void ReCreateImageTextures(int pos)
+{
+ CreateImageTexturesExt(pos, TRUE);
+}
+