diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-27 14:48:35 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-27 14:48:35 +0000 |
commit | 148f2afa0bad1f84db46ac5c46f883e5ec45f5c4 (patch) | |
tree | 579f477d558a71d33959d23b4a86aa3b88220af3 /code | |
parent | 55a5e9a51345fadf72f9cd2fb955a713bf27ea2f (diff) | |
download | ioquake3-aero-148f2afa0bad1f84db46ac5c46f883e5ec45f5c4.tar.gz ioquake3-aero-148f2afa0bad1f84db46ac5c46f883e5ec45f5c4.zip |
Fix for skybox blacklines bug on non-SDL compilations.
git-svn-id: svn://svn.icculus.org/quake3/trunk@728 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/renderer/qgl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/code/renderer/qgl.h b/code/renderer/qgl.h index 75547a8..2df33d8 100644 --- a/code/renderer/qgl.h +++ b/code/renderer/qgl.h @@ -96,6 +96,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ** multitexture extension definitions */ #if !defined(__sun) + #define GL_ACTIVE_TEXTURE_ARB 0x84E0 #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1 #define GL_MAX_ACTIVE_TEXTURES_ARB 0x84E2 @@ -104,10 +105,18 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define GL_TEXTURE1_ARB 0x84C1 #define GL_TEXTURE2_ARB 0x84C2 #define GL_TEXTURE3_ARB 0x84C3 + #else + #define GL_MAX_ACTIVE_TEXTURES_ARB 0x84E2 + #endif /* defined(__sun) */ +// define for skyboxes without black seams on non SDL-versions. +#if !defined(GL_VERSION_1_2) && !defined(GL_CLAMP_TO_EDGE) + #define GL_CLAMP_TO_EDGE 0x812F +#endif + // NOTE: some Linux platforms would need those prototypes #if defined(MACOS_X) || ( defined(__sun) && defined(__sparc) ) typedef void (APIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s); |