Stefan Dösinger : wined3d: Kill the GL_ATI_envmap_bumpmap code.
Alexandre Julliard
julliard at winehq.org
Tue Nov 4 07:29:24 CST 2008
Module: wine
Branch: master
Commit: 620a423b22663d3955f90555b0e62f11bcde0ee3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=620a423b22663d3955f90555b0e62f11bcde0ee3
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Mon Nov 3 18:36:19 2008 +0100
wined3d: Kill the GL_ATI_envmap_bumpmap code.
GL_ATI_envmap_bumpmap provides two things: Signed V8U8 pixel formats,
and bump mapping. The extension is only supported on fglrx, and this
driver also supports GL_ARB_fragment_program. Thus the bump mapping
code is never used on any driver out there. Furthermore, if it is
used, it tends to crash the driver
The signed pixel format is used, as it can be used by pixel shaders or
the ARBfp replacement. However, the format is broken in fglrx, and
negative values are clamped to 0.0. This results in test
failures. WineD3D has an alternative codepath using scale+bias to
enable V8U8 using a standard signed RGB which works correctly on
fglrx.
---
dlls/wined3d/arb_program_shader.c | 3 +-
dlls/wined3d/directx.c | 7 +---
dlls/wined3d/glsl_shader.c | 3 +-
dlls/wined3d/state.c | 88 +------------------------------------
dlls/wined3d/surface.c | 12 -----
dlls/wined3d/utils.c | 6 +--
include/wine/wined3d_gl.h | 23 ----------
7 files changed, 5 insertions(+), 137 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=620a423b22663d3955f90555b0e62f11bcde0ee3
More information about the wine-cvs
mailing list