Fix an NVIDIA problem.

This commit is contained in:
ehofman 2005-01-27 17:49:22 +00:00
parent 448bc3facd
commit fd1979857c
2 changed files with 13 additions and 10 deletions

View 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

View 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