Stefan Dösinger : wined3d: Add the ability to duplicate GL pixel shaders.

Alexandre Julliard julliard at
Tue Nov 25 07:21:45 CST 2008

Module: wine
Branch: master
Commit: 0bf32b12f5a97045c4c2785260961e53184c29ce

Author: Stefan Dösinger <stefan at>
Date:   Mon Nov 24 11:55:50 2008 +0100

wined3d: Add the ability to duplicate GL pixel shaders.

Some stateblock parameters have to be compiled into the GL pixel
shader code, like lines for pixelformat fixups. This leads to problems
when applications switch those settings, requiring a recompilation of
the shader. This patch enables wined3d to have multiple GL shaders for
a D3D shader(pixel shaders only so far) to handle this more


 dlls/wined3d/arb_program_shader.c |  116 +++++++++----------------------
 dlls/wined3d/baseshader.c         |    3 +-
 dlls/wined3d/glsl_shader.c        |  111 ++++++++++++-------------------
 dlls/wined3d/pixelshader.c        |  134 ++++++++++++------------------------
 dlls/wined3d/wined3d_private.h    |   21 +++---
 5 files changed, 134 insertions(+), 251 deletions(-)


More information about the wine-cvs mailing list