wined3d: Remove the unused tween factor stateblock member.
authorStefan Dösinger <stefan@codeweavers.com>
Fri, 8 Dec 2006 18:50:38 +0000 (19:50 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 11 Dec 2006 11:47:04 +0000 (12:47 +0100)
dlls/wined3d/device.c
dlls/wined3d/stateblock.c
dlls/wined3d/wined3d_private.h

index e1fbd50..af5e099 100644 (file)
@@ -3382,15 +3382,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
     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  :
index c0db61f..98904cc 100644 (file)
@@ -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 */
index cd49944..aaa7de7 100644 (file)
@@ -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];