]> git.mxchange.org Git - simgear.git/commitdiff
Fix an NVIDIA problem.
authorehofman <ehofman>
Thu, 27 Jan 2005 17:49:22 +0000 (17:49 +0000)
committerehofman <ehofman>
Thu, 27 Jan 2005 17:49:22 +0000 (17:49 +0000)
simgear/screen/RenderTexture.cpp
simgear/screen/extensions.hxx

index d104513df6ee4b9547a76612d7f9b532ffc6680f..364f5ef726221bd5d0362275b7ea85531396c54f 100644 (file)
@@ -1414,7 +1414,7 @@ void RenderTexture::_ParseModeString(const char *modeString,
 #else
         if (GL_NV_float_buffer)
         {
-            pfAttribs.push_back(GL_FLOAT_COMPONENTS_NV);
+            pfAttribs.push_back(GLX_FLOAT_COMPONENTS_NV);
             pfAttribs.push_back(1);
         }
 #endif
index 10a979692e592492b302719f037a7769a0abbf9a..5aa4c8c4ec0342b7fcb160bee3332894632a56e1 100644 (file)
@@ -445,15 +445,18 @@ typedef BOOL (APIENTRY * wglSetPbufferAttribARBPROC) (HPBUFFERARB hPbuffer, cons
 #define GL_TEXTURE_FLOAT_COMPONENTS_NV                         0x888C
 #define GL_FLOAT_CLEAR_COLOR_VALUE_NV                          0x888D
 #define GL_FLOAT_RGBA_MODE_NV                                  0x888E
-#define GL_FLOAT_COMPONENTS_NV                                 0x20B0
-#define GL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV                        0x20B1
-#define GL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV               0x20B2
-#define GL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV              0x20B3
-#define GL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV             0x20B4
-#define GL_TEXTURE_FLOAT_R_NV                                  0x20B5
-#define GL_TEXTURE_FLOAT_RG_NV                                 0x20B6
-#define GL_TEXTURE_FLOAT_RGB_NV                                        0x20B7
-#define GL_TEXTURE_FLOAT_RGBA_NV                               0x20B8
+#endif
+#ifndef GLX_NV_float_buffer
+#define GLX_NV_float_buffer 1
+#define GLX_FLOAT_COMPONENTS_NV                                        0x20B0
+#define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV               0x20B1
+#define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV              0x20B2
+#define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV             0x20B3
+#define GLX_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV            0x20B4
+#define GLX_TEXTURE_FLOAT_R_NV                                 0x20B5
+#define GLX_TEXTURE_FLOAT_RG_NV                                        0x20B6
+#define GLX_TEXTURE_FLOAT_RGB_NV                               0x20B7
+#define GLX_TEXTURE_FLOAT_RGBA_NV                              0x20B8
 #endif