From: ehofman Date: Thu, 27 Jan 2005 17:49:22 +0000 (+0000) Subject: Fix an NVIDIA problem. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fd1979857c0577c019c2243ff2d367329b4d1577;p=simgear.git Fix an NVIDIA problem. --- diff --git a/simgear/screen/RenderTexture.cpp b/simgear/screen/RenderTexture.cpp index d104513d..364f5ef7 100644 --- a/simgear/screen/RenderTexture.cpp +++ b/simgear/screen/RenderTexture.cpp @@ -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 diff --git a/simgear/screen/extensions.hxx b/simgear/screen/extensions.hxx index 10a97969..5aa4c8c4 100644 --- a/simgear/screen/extensions.hxx +++ b/simgear/screen/extensions.hxx @@ -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