From f149bb0fbcf107454b7cb6a3fd1bb6a7adacd070 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Sat, 10 Oct 2015 06:57:41 +0000 Subject: [PATCH] OS X: Fix POLYMER=0 build. git-svn-id: https://svn.eduke32.com/eduke32@5379 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/texcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/texcache.c b/polymer/eduke32/build/src/texcache.c index 9e86a4869..f6aa372c8 100644 --- a/polymer/eduke32/build/src/texcache.c +++ b/polymer/eduke32/build/src/texcache.c @@ -587,7 +587,7 @@ void texcache_writetex(const char *fn, int32_t len, int32_t dameth, char effect, if (gi != GL_TRUE) goto failure; // an uncompressed mipmap bglGetTexLevelParameteriv(GL_TEXTURE_2D, level, GL_TEXTURE_INTERNAL_FORMAT, &gi); WRITEX_FAIL_ON_ERROR(); -#ifdef __APPLE__ +#if defined __APPLE__ && defined POLYMER if (pr_ati_textureformat_one && gi == 1) gi = GL_COMPRESSED_RGBA_S3TC_DXT1_EXT; #endif // native -> external (little endian)