From 4cd851602745eefc0e1c144678439c06d37085fd Mon Sep 17 00:00:00 2001 From: nullifiedcat Date: Tue, 19 Jun 2018 15:26:41 +0300 Subject: [PATCH] sRGB --- src/detail/texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detail/texture.cpp b/src/detail/texture.cpp index 1c4747c..a946bca 100644 --- a/src/detail/texture.cpp +++ b/src/detail/texture.cpp @@ -34,7 +34,7 @@ void texture::bind() glGenTextures(1, &id); glBindTexture(GL_TEXTURE_2D, id); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); - glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, + glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB8_ALPHA8, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, data); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);