wined3d: Kill the GL_ATI_envmap_bumpmap code.
commit620a423b22663d3955f90555b0e62f11bcde0ee3
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 3 Nov 2008 17:36:19 +0000 (3 18:36 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 4 Nov 2008 10:41:14 +0000 (4 11:41 +0100)
tree9c9a9421764a05cef25e1f4fcf4bb60284ac8d70
parenta8497a5545f45667e7959316e4ee17404e073b0d
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
dlls/wined3d/directx.c
dlls/wined3d/glsl_shader.c
dlls/wined3d/state.c
dlls/wined3d/surface.c
dlls/wined3d/utils.c
include/wine/wined3d_gl.h