589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Compatibility functions for older GL implementations
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Copyright 2008 Stefan Dösinger for CodeWeavers
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * This library is free software; you can redistribute it and/or
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * modify it under the terms of the GNU Lesser General Public
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * License as published by the Free Software Foundation; either
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * version 2.1 of the License, or (at your option) any later version.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * This library is distributed in the hope that it will be useful,
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Lesser General Public License for more details.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * You should have received a copy of the GNU Lesser General Public
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * License along with this library; if not, write to the Free Software
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a choice of LGPL license versions is made available with the language indicating
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * of the LGPL is applied is otherwise unspecified.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/* Start GL_ARB_multitexture emulation */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord1fARB(GLenum target, GLfloat s) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord1fvARB(GLenum target, const GLfloat *v) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord2fvARB(GLenum target, const GLfloat *v) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord3fvARB(GLenum target, const GLfloat *v) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord4fvARB(GLenum target, const GLfloat *v) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord2svARB(GLenum target, const GLshort *v) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glMultiTexCoord4svARB(GLenum target, const GLshort *v) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glActiveTextureARB(GLenum texture) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glClientActiveTextureARB(GLenum texture) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync ERR("Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_multitex_glGetIntegerv) (GLenum pname, GLint* params) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glGetIntegerv(GLenum pname, GLint* params) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync default: old_multitex_glGetIntegerv(pname, params);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_multitex_glGetFloatv) (GLenum pname, GLfloat* params) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glGetFloatv(GLenum pname, GLfloat* params) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_multitex_glGetDoublev) (GLenum pname, GLdouble* params) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glGetDoublev(GLenum pname, GLdouble* params) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/* Start GL_EXT_fogcoord emulation */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glEnable) (GLenum cap) = NULL;
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync if(ctx->gl_fog_source != GL_FRAGMENT_DEPTH_EXT) return;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glDisable) (GLenum cap) = NULL;
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync if(ctx->gl_fog_source != GL_FRAGMENT_DEPTH_EXT) return;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogi) (GLenum pname, GLint param) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogi(GLenum pname, GLint param) {
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync if(ctx->fog_enabled) old_fogcoord_glEnable(GL_FOG);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync WARN("Fog coords activated, but not supported. Using slow emulation\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogiv) (GLenum pname, const GLint *param) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogiv(GLenum pname, const GLint *param) {
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync if(ctx->fog_enabled) old_fogcoord_glEnable(GL_FOG);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync WARN("Fog coords activated, but not supported. Using slow emulation\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogf) (GLenum pname, GLfloat param) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogf(GLenum pname, GLfloat param) {
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync if(ctx->fog_enabled) old_fogcoord_glEnable(GL_FOG);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync WARN("Fog coords activated, but not supported. Using slow emulation\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogfv) (GLenum pname, const GLfloat *param) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogfv(GLenum pname, const GLfloat *param) {
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync if(ctx->fog_enabled) old_fogcoord_glEnable(GL_FOG);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync WARN("Fog coords activated, but not supported. Using slow emulation\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glVertex4f) (GLfloat x, GLfloat y, GLfloat z, GLfloat w) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glVertex4fv) (const GLfloat *pos) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glVertex3f) (GLfloat x, GLfloat y, GLfloat z) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glVertex3fv) (const GLfloat *pos) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glColor4f) (GLfloat r, GLfloat g, GLfloat b, GLfloat a) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glColor4fv) (const GLfloat *color) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glColor3f) (GLfloat r, GLfloat g, GLfloat b) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glColor3fv) (const GLfloat *color) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glColor4ub) (GLubyte r, GLubyte g, GLubyte b, GLubyte a) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogCoordfEXT) (GLfloat f) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogCoorddEXT) (GLdouble f) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogCoordfvEXT) (const GLfloat *f) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void (WINE_GLAPI *old_fogcoord_glFogCoorddvEXT) (const GLdouble *f) = NULL;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync if(ctx->gl_fog_source == GL_FOG_COORDINATE_EXT && ctx->fog_enabled) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync GLfloat c[4] = {ctx->color[0], ctx->color[1], ctx->color[2], ctx->color[3]};
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync i = (ctx->fogend - ctx->fog_coord_value) / (ctx->fogend - ctx->fogstart);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glVertex4fv(const GLfloat *pos) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glVertex3f(GLfloat x, GLfloat y, GLfloat z) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glVertex3fv(const GLfloat *pos) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a) {
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glColor4fv(const GLfloat *c) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glColor3f(GLfloat r, GLfloat g, GLfloat b) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glColor3fv(const GLfloat *c) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a) {
040b4a09341f574825386333398110f4db3e1e51vboxsync wine_glColor4f(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/* In D3D the fog coord is a UBYTE, so there's no problem with using the single
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * precision function
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogCoordfEXT(GLfloat f) {
114410893548b9522c46fdcbd8f63385eb8bfb68vboxsync struct wined3d_context *ctx = context_get_current();
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogCoorddEXT(GLdouble f) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogCoordfvEXT(const GLfloat *f) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncstatic void WINE_GLAPI wine_glFogCoorddvEXT(const GLdouble *f) {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/* End GL_EXT_fog_coord emulation */
040b4a09341f574825386333398110f4db3e1e51vboxsyncvoid add_gl_compat_wrappers(struct wined3d_gl_info *gl_info)
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync TRACE("Applying GL_ARB_multitexture emulation hooks\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glActiveTextureARB = wine_glActiveTextureARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glClientActiveTextureARB = wine_glClientActiveTextureARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord1fARB = wine_glMultiTexCoord1fARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord1fvARB = wine_glMultiTexCoord1fvARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord2fARB = wine_glMultiTexCoord2fARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord2fvARB = wine_glMultiTexCoord2fvARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord3fARB = wine_glMultiTexCoord3fARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord3fvARB = wine_glMultiTexCoord3fvARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord4fARB = wine_glMultiTexCoord4fARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord4fvARB = wine_glMultiTexCoord4fvARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord2svARB = wine_glMultiTexCoord2svARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync gl_info->glMultiTexCoord4svARB = wine_glMultiTexCoord4svARB;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_ARB_multitexture glGetIntegerv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_ARB_multitexture glGetGloatv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_ARB_multitexture glGetDoublev hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync /* This emulation isn't perfect. There are a number of potential problems, but they should
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * not matter in practise:
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Fog vs fragment shader: If we are using GL_ARB_fragment_program with the fog option, the
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * glDisable(GL_FOG) here won't matter. However, if we have GL_ARB_fragment_program, it is pretty
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * unlikely that we don't have GL_EXT_fog_coord. Besides, we probably have GL_ARB_vertex_program
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * too, which would allow fog coord emulation in a fixed function vertex pipeline replacement.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Fog vs texture: We apply the fog in the vertex color. An app could set up texturing settings which
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * ignore the vertex color, thus effectively disabing our fog. However, in D3D this type of fog is
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a per-vertex fog too, so the apps shouldn't do that.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Fog vs lighting: The app could in theory use D3DFOG_NONE table and D3DFOG_NONE vertex fog with
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * untransformed vertices. That enables lighting and fog coords at the same time, and the lighting
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * calculations could affect the already blended in fog color. There's nothing we can do against that,
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * but most apps using fog color do their own lighting too and often even use RHW vertices. So live
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync TRACE("Applying GL_ARB_fog_coord emulation hooks\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync /* This probably means that the implementation doesn't advertise the extension, but implicitly supports
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * it via the GL core version, or someone messed around in the extension table in directx.c. Add version-
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * dependent loading for this extension if we ever hit this situation
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL implementation supports GL_ARB_fragment_program but not GL_EXT_fog_coord\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("The fog coord emulation will most likely fail\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL implementation supports GL_ARB_fragment_shader but not GL_EXT_fog_coord\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("The fog coord emulation will most likely fail\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogi hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogiv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogf hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogfv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glEnable hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glDisable hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glVertex4f hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glVertex4fv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glVertex3f hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glVertex3fv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glColor4f hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glColor4fv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glColor3f hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glColor3fv hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glColor4ub hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogCoordfEXT hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync old_fogcoord_glFogCoordfEXT = gl_info->glFogCoordfEXT;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogCoordfvEXT hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync old_fogcoord_glFogCoordfvEXT = gl_info->glFogCoordfvEXT;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogCoorddEXT hook already applied\n");
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync old_fogcoord_glFogCoorddEXT = gl_info->glFogCoorddEXT;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync FIXME("GL_EXT_fogcoord glFogCoorddvEXT hook already applied\n");