[15/16] WineD3D: Remove the unused tween factor stateblock member
Stefan Dösinger
stefan at codeweavers.com
Fri Dec 8 12:50:38 CST 2006
Like vertex_blend this member is only set, but never actually used. Its just a
copy of the WINED3DRS_TWEENFACTOR render state.
-------------- next part --------------
From 55e91453d7066dab96dbcd36af3ec498e570156e Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Fri, 8 Dec 2006 17:31:42 +0100
Subject: [PATCH] WineD3D: Remove the unused tween_factor stateblock member
---
dlls/wined3d/device.c | 9 +--------
dlls/wined3d/stateblock.c | 1 -
dlls/wined3d/wined3d_private.h | 3 ---
3 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 2e98ab6..1d86108 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3382,15 +3382,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl
case WINED3DRS_FOGCOLOR :
case WINED3DRS_FOGDENSITY :
case WINED3DRS_VERTEXBLEND :
- StateTable[STATE_RENDER(State)].apply(STATE_RENDER(State), This->stateBlock);
- break;
-
case WINED3DRS_TWEENFACTOR :
- {
- tmpvalue.d = Value;
- This->updateStateBlock->tween_factor = tmpvalue.f;
- TRACE("Vertex Blending Tween Factor to %f\n", This->updateStateBlock->tween_factor);
- }
+ StateTable[STATE_RENDER(State)].apply(STATE_RENDER(State), This->stateBlock);
break;
case WINED3DRS_INDEXEDVERTEXBLENDENABLE :
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index c0db61f..98904cc 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -167,7 +167,6 @@ void stateblock_copy(
Dest->viewport = This->viewport;
Dest->material = This->material;
Dest->pixelShader = This->pixelShader;
- Dest->tween_factor = This->tween_factor;
Dest->glsl_program = This->glsl_program;
/* Fixed size arrays */
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index cd49944..aaa7de7 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1171,9 +1171,6 @@ struct IWineD3DStateBlockImpl
INT pixelShaderConstantI[MAX_CONST_I * 4];
float *pixelShaderConstantF;
- /* Indexed Vertex Blending */
- FLOAT tween_factor;
-
/* RenderState */
DWORD renderState[WINEHIGHEST_RENDER_STATE + 1];
--
1.4.2.4
More information about the wine-patches
mailing list