summaryrefslogtreecommitdiff
path: root/src/renderercommon
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2015-12-15 03:23:55 -0800
committerTim Angus <tim@ngus.net>2016-04-07 11:13:36 +0100
commitf77b9694e3d2870f62b27589c70c2cf254248db3 (patch)
tree21a9690615b67de2bf62032f048c254d044d4fcf /src/renderercommon
parent9cdedf11eff894db8f9f572ab52eae37fdacf473 (diff)
OpenGL2: Switch to RGTC from LATC for normal maps. Also added a RGTC compressor as a workaround on Intel graphics.
Diffstat (limited to 'src/renderercommon')
-rw-r--r--src/renderercommon/qgl.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/renderercommon/qgl.h b/src/renderercommon/qgl.h
index 559c4387..cc0dd6a7 100644
--- a/src/renderercommon/qgl.h
+++ b/src/renderercommon/qgl.h
@@ -928,12 +928,12 @@ extern void (APIENTRY * qglRenderbufferStorageMultisampleEXT)(GLenum target, GLs
#define GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
#endif
-#ifndef GL_EXT_texture_compression_latc
-#define GL_EXT_texture_compression_latc
-#define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
-#define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
-#define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72
-#define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73
+#ifndef GL_ARB_texture_compression_rgtc
+#define GL_ARB_texture_compression_rgtc
+#define GL_COMPRESSED_RED_RGTC1 0x8DBB
+#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
+#define GL_COMPRESSED_RG_RGTC2 0x8DBD
+#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
#endif
#ifndef GL_ARB_texture_compression_bptc