aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llwindow/llgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llwindow/llgl.h')
-rw-r--r--linden/indra/llwindow/llgl.h30
1 files changed, 10 insertions, 20 deletions
diff --git a/linden/indra/llwindow/llgl.h b/linden/indra/llwindow/llgl.h
index e8f17bf..2618dca 100644
--- a/linden/indra/llwindow/llgl.h
+++ b/linden/indra/llwindow/llgl.h
@@ -48,9 +48,9 @@
48#include "llglheaders.h" 48#include "llglheaders.h"
49#include "glh/glh_linear.h" 49#include "glh/glh_linear.h"
50 50
51#define LL_DEBUG_GL 1 51extern BOOL gDebugGL;
52 52
53#define LL_GL_ERRS llerrs 53#define LL_GL_ERRS LL_ERRS("RenderState")
54 54
55class LLSD; 55class LLSD;
56 56
@@ -92,7 +92,7 @@ public:
92 BOOL mHasARBEnvCombine; 92 BOOL mHasARBEnvCombine;
93 BOOL mHasCubeMap; 93 BOOL mHasCubeMap;
94 94
95 // Vender specific extensions 95 // Vendor-specific extensions
96 BOOL mIsATI; 96 BOOL mIsATI;
97 BOOL mIsNVIDIA; 97 BOOL mIsNVIDIA;
98 BOOL mIsIntel; 98 BOOL mIsIntel;
@@ -104,18 +104,7 @@ public:
104 // Whether this version of GL is good enough for SL to use 104 // Whether this version of GL is good enough for SL to use
105 BOOL mHasRequirements; 105 BOOL mHasRequirements;
106 106
107#if LL_WINDOWS 107 // Misc extensions
108 BOOL mHasWGLARBPixelFormat;
109#endif // LL_WINDOWS
110
111#if LL_DARWIN
112 // Apple extensions.
113 BOOL mHasAPPLEVertexArrayRange;
114 BOOL mHasAPPLEFence;
115 BOOL mHasAPPLEVAO;
116#endif
117
118 // Misc exitensions
119 BOOL mHasSeparateSpecularColor; 108 BOOL mHasSeparateSpecularColor;
120 109
121 S32 mDriverVersionMajor; 110 S32 mDriverVersionMajor;
@@ -131,6 +120,7 @@ public:
131 void getPixelFormat(); // Get the best pixel format 120 void getPixelFormat(); // Get the best pixel format
132 121
133 LLString getGLInfoString(); 122 LLString getGLInfoString();
123 void printGLInfoString();
134 void getGLInfo(LLSD& info); 124 void getGLInfo(LLSD& info);
135 125
136 // In ALL CAPS 126 // In ALL CAPS
@@ -159,13 +149,13 @@ void assert_glerror();
159 149
160void clear_glerror(); 150void clear_glerror();
161 151
162#if LL_DEBUG 152//#if LL_DEBUG
163# define stop_glerror() assert_glerror() 153# define stop_glerror() assert_glerror()
164# define llglassertok() assert_glerror() 154# define llglassertok() assert_glerror()
165#else 155//#else
166# define stop_glerror() 156//# define stop_glerror()
167# define llglassertok() 157//# define llglassertok()
168#endif 158//#endif
169 159
170#define llglassertok_always() assert_glerror() 160#define llglassertok_always() assert_glerror()
171 161