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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user