Use fixed-size texture format

I recall reading that you should prefer these over the non-fixed size
This commit is contained in:
Clownacy 2020-04-15 16:59:54 +01:00
parent 073e62de46
commit 3ffe5a083e

View file

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