Module: wine Branch: master Commit: 0bf32b12f5a97045c4c2785260961e53184c29ce URL: http://source.winehq.org/git/wine.git/?a=commit;h=0bf32b12f5a97045c4c2785260...
Author: Stefan Dösinger stefan@codeweavers.com 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 efficiently.
---
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(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=0bf32b12f5a97045c4c278...