From 81ade0c5d3918c9f6483da28341f1f646cc98e88 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 26 Oct 2019 09:32:38 +0000 Subject: [PATCH] Fix grey textures coming out as too dark. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5573 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_draw.c b/engine/gl/gl_draw.c index c7c4ba2b1..09b452f95 100644 --- a/engine/gl/gl_draw.c +++ b/engine/gl/gl_draw.c @@ -287,8 +287,8 @@ void GL_SetupFormats(void) glfmtc(PTI_L8A8, GL_LUMINANCE8_ALPHA8,GL_LUMINANCE_ALPHA, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 0); if (ver >= 2.1) { - glfmtc(PTI_L8, GL_SLUMINANCE8_EXT, GL_SLUMINANCE_EXT, GL_LUMINANCE, GL_UNSIGNED_BYTE, 0); - glfmtc(PTI_L8A8,GL_SLUMINANCE8_ALPHA8_EXT,GL_SLUMINANCE_ALPHA_EXT, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 0); + glfmtc(PTI_L8_SRGB, GL_SLUMINANCE8_EXT, GL_SLUMINANCE_EXT, GL_LUMINANCE, GL_UNSIGNED_BYTE, 0); + glfmtc(PTI_L8A8_SRGB,GL_SLUMINANCE8_ALPHA8_EXT,GL_SLUMINANCE_ALPHA_EXT, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 0); } } else if (ver >= 3.3)