Module: wine Branch: master Commit: 620a423b22663d3955f90555b0e62f11bcde0ee3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=620a423b22663d3955f90555b0...
Author: Stefan Dösinger stefan@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=620a423b22663d3955f905...