cubemapper
diff src/texture.cc @ 2:e308561f9889
correct cubemap export and visualization
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 28 Jul 2017 13:24:34 +0300 |
parents | d7a29cb7ac8d |
children | 2bfafdced01a |
line diff
1.1 --- a/src/texture.cc Fri Jul 28 07:44:35 2017 +0300 1.2 +++ b/src/texture.cc Fri Jul 28 13:24:34 2017 +0300 1.3 @@ -51,26 +51,6 @@ 1.4 unsigned int pixfmt = img_glfmt(&img); 1.5 unsigned int pixtype = img_gltype(&img); 1.6 1.7 - // if we have the sRGB extension, change the internal formats to sRGB 1.8 - if(GLEW_EXT_texture_sRGB) { 1.9 - switch(intfmt) { 1.10 - case 3: 1.11 - case GL_RGB: 1.12 - intfmt = GL_SRGB_EXT; 1.13 - break; 1.14 - case 4: 1.15 - case GL_RGBA: 1.16 - intfmt = GL_SRGB_ALPHA; 1.17 - break; 1.18 - case 1: 1.19 - case GL_LUMINANCE: 1.20 - intfmt = GL_SLUMINANCE; 1.21 - break; 1.22 - default: 1.23 - break; 1.24 - } 1.25 - } 1.26 - 1.27 width = img.width; 1.28 height = img.height; 1.29 tex_width = next_pow2(width);