34 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
44 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
54 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
64 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
74 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
84 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
94 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
104 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
114 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
124 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported.\n");
133 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
140 ERR(
"Texture unit > 0 used, but GL_ARB_multitexture is not supported\n");
150 default: old_multitex_glGetIntegerv(
pname,
params);
174 ctx->fog_enabled = 1;
178 old_fogcoord_glEnable(
cap);
188 ctx->fog_enabled = 0;
192 old_fogcoord_glDisable(
cap);
205 if (
ctx->fog_enabled)
206 old_fogcoord_glEnable(
GL_FOG);
210 WARN_(d3d_perf)(
"Fog coordinates activated, but not supported. Using slow emulation.\n");
211 old_fogcoord_glDisable(
GL_FOG);
234 if (
ctx->fog_enabled)
235 old_fogcoord_glEnable(
GL_FOG);
239 WARN_(d3d_perf)(
"Fog coordinates activated, but not supported. Using slow emulation.\n");
240 old_fogcoord_glDisable(
GL_FOG);
263 if (
ctx->fog_enabled)
264 old_fogcoord_glEnable(
GL_FOG);
268 WARN_(d3d_perf)(
"Fog coordinates activated, but not supported. Using slow emulation.\n");
269 old_fogcoord_glDisable(
GL_FOG);
292 if (
ctx->fog_enabled)
293 old_fogcoord_glEnable(
GL_FOG);
297 WARN_(d3d_perf)(
"Fog coordinates activated, but not supported. Using slow emulation.\n");
298 old_fogcoord_glDisable(
GL_FOG);
333 old_fogcoord_glVertex4f(
x,
y,
z,
w);
347 old_fogcoord_glColor4f(
c[0],
c[1],
c[2],
c[3]);
348 old_fogcoord_glVertex4f(
x,
y,
z,
w);
352 old_fogcoord_glVertex4f(
x,
y,
z,
w);
376 old_fogcoord_glColor4f(
r,
g,
b,
a);
384 old_fogcoord_glColor4f(
r,
g,
b,
a);
409 ctx->fog_coord_value =
f;
432 FIXME(
"ARB_multitexture emulation hooks already applied.\n");
435 TRACE(
"Applying GL_ARB_multitexture emulation hooks.\n");
448 old_multitex_glGetIntegerv =
gl_info->gl_ops.gl.p_glGetIntegerv;
450 old_multitex_glGetFloatv =
gl_info->gl_ops.gl.p_glGetFloatv;
452 old_multitex_glGetDoublev =
gl_info->gl_ops.gl.p_glGetDoublev;
480 FIXME(
"EXT_fog_coord emulation hooks already applied.\n");
483 TRACE(
"Applying GL_ARB_fog_coord emulation hooks\n");
491 FIXME(
"GL implementation supports GL_ARB_fragment_program but not GL_EXT_fog_coord\n");
492 FIXME(
"The fog coord emulation will most likely fail\n");
496 FIXME(
"GL implementation supports GL_ARB_fragment_shader but not GL_EXT_fog_coord\n");
497 FIXME(
"The fog coord emulation will most likely fail\n");
500 old_fogcoord_glFogi =
gl_info->gl_ops.gl.p_glFogi;
502 old_fogcoord_glFogiv =
gl_info->gl_ops.gl.p_glFogiv;
504 old_fogcoord_glFogf =
gl_info->gl_ops.gl.p_glFogf;
506 old_fogcoord_glFogfv =
gl_info->gl_ops.gl.p_glFogfv;
508 old_fogcoord_glEnable =
gl_info->p_glEnableWINE;
510 old_fogcoord_glDisable =
gl_info->p_glDisableWINE;
513 old_fogcoord_glVertex4f =
gl_info->gl_ops.gl.p_glVertex4f;
519 old_fogcoord_glColor4f =
gl_info->gl_ops.gl.p_glColor4f;
534 FIXME(
"Extension %u emulation not supported.\n",
ext);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
struct wined3d_context_gl * wined3d_context_gl_get_current(void)
#define WINE_DECLARE_DEBUG_CHANNEL(x)
static const WCHAR *const ext[]
GLint GLint GLint GLint GLint x
#define GL_MAX_TEXTURE_UNITS_ARB
#define GL_ACTIVE_TEXTURE
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble GLdouble q
static void WINE_GLAPI wine_glFogCoordfEXT(GLfloat f)
static void WINE_GLAPI wine_glMultiTexCoord2fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glFogiv(GLenum pname, const GLint *param)
static void WINE_GLAPI wine_glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
static void WINE_GLAPI wine_glGetFloatv(GLenum pname, GLfloat *params)
static void WINE_GLAPI wine_glFogfv(GLenum pname, const GLfloat *param)
static GLfloat GLfloat GLfloat w
static void WINE_GLAPI wine_glFogf(GLenum pname, GLfloat param)
static GLfloat GLfloat GLfloat a
static void WINE_GLAPI wine_glActiveTexture(GLenum texture)
static void WINE_GLAPI wine_glMultiTexCoord4fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glMultiTexCoord1fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r)
static void WINE_GLAPI wine_glMultiTexCoord2svARB(GLenum target, const GLshort *v)
static void WINE_GLAPI wine_glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
static void WINE_GLAPI wine_glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t)
static void WINE_GLAPI wine_glVertex3fv(const GLfloat *pos)
static void WINE_GLAPI wine_glColor3f(GLfloat r, GLfloat g, GLfloat b)
static void WINE_GLAPI wine_glColor3fv(const GLfloat *c)
static void WINE_GLAPI wine_glFogCoordfvEXT(const GLfloat *f)
static void WINE_GLAPI wine_glEnable(GLenum cap)
static void WINE_GLAPI wine_glGetIntegerv(GLenum pname, GLint *params)
static void WINE_GLAPI wine_glColor4fv(const GLfloat *c)
static void WINE_GLAPI wine_glFogi(GLenum pname, GLint param)
static void WINE_GLAPI wine_glVertex4fv(const GLfloat *pos)
static void WINE_GLAPI wine_glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
static void WINE_GLAPI wine_glFogCoorddEXT(GLdouble f)
static void WINE_GLAPI wine_glMultiTexCoord3fvARB(GLenum target, const GLfloat *v)
static void WINE_GLAPI wine_glDisable(GLenum cap)
static void WINE_GLAPI wine_glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
static void WINE_GLAPI wine_glVertex3f(GLfloat x, GLfloat y, GLfloat z)
static void WINE_GLAPI wine_glFogCoorddvEXT(const GLdouble *f)
void install_gl_compat_wrapper(struct wined3d_gl_info *gl_info, enum wined3d_gl_extension ext)
static void WINE_GLAPI wine_glGetDoublev(GLenum pname, GLdouble *params)
static void WINE_GLAPI wine_glMultiTexCoord1fARB(GLenum target, GLfloat s)
static void WINE_GLAPI wine_glClientActiveTextureARB(GLenum texture)
static void WINE_GLAPI wine_glMultiTexCoord4svARB(GLenum target, const GLshort *v)
#define GL_FOG_COORDINATE_SOURCE_EXT
#define GL_FRAGMENT_DEPTH_EXT
GLboolean GLboolean GLboolean b
GLenum const GLfloat * params
#define GL_FOG_COORDINATE_EXT
GLboolean GLboolean GLboolean GLboolean a
GLubyte GLubyte GLubyte GLubyte w
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static float(__cdecl *square_half_float)(float x
const struct wined3d_gl_info * gl_info