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));
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)
{
data_state = resource_state::failed;