mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 13:29:19 +02:00
bugfixes
This commit is contained in:
@@ -348,7 +348,7 @@ void opengl_texture::load_STBI()
|
||||
|
||||
data.resize(x * y * 4);
|
||||
memcpy(&data[0], image, data.size());
|
||||
delete image;
|
||||
free(image);
|
||||
|
||||
data_format = GL_RGBA;
|
||||
data_components = (n == 4 ? GL_RGBA : GL_RGB);
|
||||
|
||||
Reference in New Issue
Block a user