extern int netdatanew;
extern float mapinfo;
extern bool stillloading;
-extern ImageRec texture;
extern short vRefNum;
extern long dirID;
extern int mainmenu;
}
OPENAL_Close();
- if (texture.data) {
- free(texture.data);
- }
- texture.data = 0;
#endif
}
texdetail = 1;
//Load Image
- upload_image(ConvertFileName(fileName));
+ ImageRec texture;
+ load_image(ConvertFileName(fileName), texture);
texdetail = temptexdetail;
int bytesPerPixel = texture.bpp / 8;
stillloading = 1;
- texture.data = ( GLubyte* )malloc( 1024 * 1024 * 4 );
-
int temptexdetail = texdetail;
texdetail = 1;
text->LoadFontTexture(":Data:Textures:Font.png");