16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 22:09:19 +02:00

fix png loading

This commit is contained in:
milek7
2018-10-25 19:34:17 +02:00
parent 98b167a666
commit 967dbe6369

View File

@@ -88,7 +88,7 @@ void opengl_texture::load_PNG()
memset(&png, 0, sizeof(png_image)); memset(&png, 0, sizeof(png_image));
png.version = PNG_IMAGE_VERSION; png.version = PNG_IMAGE_VERSION;
png_image_begin_read_from_file(&png, name.c_str()); png_image_begin_read_from_file(&png, (name + type).c_str());
if (png.warning_or_error) if (png.warning_or_error)
{ {
data_state = resource_state::failed; data_state = resource_state::failed;