From a951a8c8854f875ccef289e9f473860995d47015 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sat, 5 Apr 2014 20:48:50 +0200 Subject: [PATCH] Wrong glsl check when compressing textures. --- src/graphics/glwrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/glwrap.cpp b/src/graphics/glwrap.cpp index 63940deb2..80e45bb2d 100644 --- a/src/graphics/glwrap.cpp +++ b/src/graphics/glwrap.cpp @@ -309,7 +309,7 @@ void transformTexturesTosRGB(irr::video::ITexture *tex) memcpy(data, tex->lock(), w * h * 4); tex->unlock(); glBindTexture(GL_TEXTURE_2D, getTextureGLuint(tex)); - if (irr_driver->getGLSLVersion() < 320) + if (irr_driver->getGLSLVersion() < 150) { if (tex->hasAlpha()) glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB_ALPHA, w, h, 0, GL_BGRA, GL_UNSIGNED_BYTE, (GLvoid *)data);