From 3ffe5a083e9845327f034e7bdae3c2911bf0e357 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 15 Apr 2020 16:59:54 +0100 Subject: [PATCH] Use fixed-size texture format I recall reading that you should prefer these over the non-fixed size --- src/Backends/GLFW3/Window-Software.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/GLFW3/Window-Software.cpp b/src/Backends/GLFW3/Window-Software.cpp index ea7b30b1..173fca73 100644 --- a/src/Backends/GLFW3/Window-Software.cpp +++ b/src/Backends/GLFW3/Window-Software.cpp @@ -72,7 +72,7 @@ unsigned char* WindowBackend_Software_CreateWindow(const char *window_title, int while (framebuffer_texture_height < framebuffer_height) framebuffer_texture_height <<= 1; - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, framebuffer_texture_width, framebuffer_texture_height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); + glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, framebuffer_texture_width, framebuffer_texture_height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);