From 81eec06aea1cbb20ae68cf16104b5fb7930f7dcc Mon Sep 17 00:00:00 2001 From: Jens Ayton Date: Fri, 6 Jul 2007 11:01:14 +0000 Subject: [PATCH] Changed texture 'type' parameter under Windows to something apparently more optimal. Needs testing -- are colours right? Is performance noticably changed? git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1061 127b21dd-08f5-0310-b4b7-95ae10353056 --- src/Core/Materials/OOTexture.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Core/Materials/OOTexture.m b/src/Core/Materials/OOTexture.m index a44e0bf7..b1dc0c34 100644 --- a/src/Core/Materials/OOTexture.m +++ b/src/Core/Materials/OOTexture.m @@ -87,7 +87,11 @@ static BOOL sCheckedExtensions = NO; #if OOLITE_BIG_ENDIAN #define RGBA_IMAGE_TYPE GL_UNSIGNED_INT_8_8_8_8_REV #elif OOLITE_LITTLE_ENDIAN - #define RGBA_IMAGE_TYPE GL_UNSIGNED_INT_8_8_8_8 + #if OOLITE_WINDOWS + #define RGBA_IMAGE_TYPE GL_UNSIGNED_BYTE + #else + #define RGBA_IMAGE_TYPE GL_UNSIGNED_INT_8_8_8_8 + #endif #else #error Neither OOLITE_BIG_ENDIAN nor OOLITE_LITTLE_ENDIAN is defined as nonzero! #endif