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

texture load fixes, shader changes

This commit is contained in:
milek7
2018-07-19 19:10:50 +02:00
parent a729c5fa1d
commit 4d198840dc
5 changed files with 20 additions and 29 deletions

View File

@@ -768,6 +768,9 @@ opengl_texture::create() {
if (f_it != precompressed_formats.end())
components = data_format;
if (!components_hint)
components_hint = GL_SRGB_ALPHA;
GLint internal_format = mapping[components][components_hint];
auto blocksize_it = precompressed_formats.find(internal_format);