added texture swapping

This commit is contained in:
Sandro Sobczyński committed 2020-10-31 22:14:35 +01:00
1 parent 885e8b4f2b
commit f9dc79caf1
6 files changed
+48 -42

No files matched your search

+3
View File
@@ -40,7 +40,10 @@ void BmpLoader::load(MeshTexture &o_texture, char *t_subfolder, char *t_name, ch
FILE *file = fopen(t_path, "rb");
if (file == NULL)
{
PRINT_ERR("Failed to load .bmp file!");
return;
}
unsigned char header[54];
fread(header, sizeof(unsigned char), 54, file);