18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 11:59:14 +01:00

fix(render): the free camera blurs with its own movement in the OpenGL 4.6 and Vulkan renderers

This commit is contained in:
2026-11-23 20:55:50 +01:00
parent d4f22061ee
commit 51c76da927
10 changed files with 164 additions and 4 deletions

View File

@@ -686,8 +686,6 @@ void opengl_texture::upload_from_thread(size_t width, size_t height, const uint8
set_filtering();
glTexParameteri(target, GL_TEXTURE_WRAP_S, wrap_mode_s);
glTexParameteri(target, GL_TEXTURE_WRAP_T, wrap_mode_t);
if (!glGenerateMipmap)
glTexParameteri(target, GL_GENERATE_MIPMAP, GL_TRUE);
glTexImage2D(target, 0, GL_SRGB8_ALPHA8, static_cast<GLsizei>(width), static_cast<GLsizei>(height), 0, GL_RGBA, GL_UNSIGNED_BYTE, raw);
if (glGenerateMipmap)
glGenerateMipmap(target);