aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llgl.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llwindow/llgl.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/linden/indra/llwindow/llgl.h b/linden/indra/llwindow/llgl.h
index 34bf400..c83ccb8 100644
--- a/linden/indra/llwindow/llgl.h
+++ b/linden/indra/llwindow/llgl.h
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2001-2007, Linden Research, Inc. 5 * Copyright (c) 2001-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -40,6 +41,8 @@
40#include "v4math.h" 41#include "v4math.h"
41#include "llgltypes.h" 42#include "llgltypes.h"
42 43
44#define LL_DEBUG_GL 1
45
43#define LL_GL_ERRS llerrs 46#define LL_GL_ERRS llerrs
44 47
45// Manage GL extensions... 48// Manage GL extensions...
@@ -62,10 +65,10 @@ public:
62 BOOL mHasMultitexture; 65 BOOL mHasMultitexture;
63 S32 mNumTextureUnits; 66 S32 mNumTextureUnits;
64 BOOL mHasMipMapGeneration; 67 BOOL mHasMipMapGeneration;
65 BOOL mHasAnyAGP;
66 BOOL mHasPalettedTextures; 68 BOOL mHasPalettedTextures;
67 BOOL mHasCompressedTextures; 69 BOOL mHasCompressedTextures;
68 70 BOOL mHasFramebufferObject;
71
69 // ARB Extensions 72 // ARB Extensions
70 BOOL mHasVertexBufferObject; 73 BOOL mHasVertexBufferObject;
71 BOOL mHasPBuffer; 74 BOOL mHasPBuffer;
@@ -75,25 +78,19 @@ public:
75 BOOL mHasOcclusionQuery; 78 BOOL mHasOcclusionQuery;
76 BOOL mHasPointParameters; 79 BOOL mHasPointParameters;
77 80
78 // nVidia extensions. 81 // Other extensions.
79 BOOL mHasAnisotropic; 82 BOOL mHasAnisotropic;
80 BOOL mHasNVVertexArrayRange;
81 BOOL mHasNVFence;
82 BOOL mHasARBEnvCombine; 83 BOOL mHasARBEnvCombine;
84 BOOL mHasCubeMap;
83 85
84 // ATI extensions. 86 // Vender specific extensions
85 BOOL mHasATIVAO; 87 BOOL mIsATI;
86 BOOL mIsRadeon8500; // Radeon 8500/9000 88 BOOL mIsNVIDIA;
87 BOOL mIsRadeon9700; 89 BOOL mIsIntel;
88 BOOL mIsMobilityRadeon9000;
89 BOOL mIsGF2or4MX; 90 BOOL mIsGF2or4MX;
90 BOOL mIsGF3; 91 BOOL mIsGF3;
91 BOOL mIsGFFX; 92 BOOL mIsGFFX;
92 BOOL mIsATI;
93 BOOL mATIOffsetVerticalLines; 93 BOOL mATIOffsetVerticalLines;
94 BOOL mIsNVIDIA;
95 BOOL mIsIntel;
96 BOOL mHasCubeMap;
97 94
98#if LL_WINDOWS 95#if LL_WINDOWS
99 BOOL mHasWGLARBPixelFormat; 96 BOOL mHasWGLARBPixelFormat;
@@ -220,6 +217,7 @@ public:
220 static void initClass(); 217 static void initClass();
221 static void restoreGL(); 218 static void restoreGL();
222 219
220 static void resetTextureStates();
223 static void dumpStates(); 221 static void dumpStates();
224 static void checkStates(); 222 static void checkStates();
225 static void checkTextureChannels(); 223 static void checkTextureChannels();