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