16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 13:29:19 +02:00
This commit is contained in:
milek7
2020-10-23 01:23:48 +02:00
parent 89b9204ab0
commit 286f31b75c
3 changed files with 4 additions and 7 deletions

View File

@@ -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);