[09/10] wined3d: Get rid of any remaining d3d9 stuff in stateblock.c

H. Verbeet hverbeet at gmail.com
Thu Feb 15 06:32:19 CST 2007


Changelog:
  - Get rid of any remaining d3d9 stuff in stateblock.c
-------------- next part --------------
---

 dlls/wined3d/stateblock.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 6112f59..7622d8e 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -672,7 +672,7 @@ should really perform a delta so that only the changes get updated*/
         }
     }
 
-    if (/*TODO: 'magic' statetype, replace with BOOL This->blockType == D3DSBT_RECORDED || */ This->blockType == D3DSBT_ALL || This->blockType == D3DSBT_PIXELSTATE) {
+    if (/*TODO: 'magic' statetype, replace with BOOL This->blockType == D3DSBT_RECORDED || */ This->blockType == WINED3DSBT_ALL || This->blockType == WINED3DSBT_PIXELSTATE) {
 
         /* Pixel Shader */
         if (This->set.pixelShader && This->changed.pixelShader) {
@@ -829,7 +829,7 @@ should really perform a delta so that only the changes get updated*/
     stateblock_savedstates_copy(iface, &((IWineD3DDeviceImpl*)pDevice)->stateBlock->changed, &This->changed);
     ((IWineD3DDeviceImpl *)pDevice)->stateBlock->lowest_disabled_stage = MAX_TEXTURES - 1;
     for(j = 0; j < MAX_TEXTURES - 1; j++) {
-        if(((IWineD3DDeviceImpl *)pDevice)->stateBlock->textureState[j][D3DTSS_COLOROP] == WINED3DTOP_DISABLE) {
+        if(((IWineD3DDeviceImpl *)pDevice)->stateBlock->textureState[j][WINED3DTSS_COLOROP] == WINED3DTOP_DISABLE) {
             ((IWineD3DDeviceImpl *)pDevice)->stateBlock->lowest_disabled_stage = j;
             break;
         }


More information about the wine-patches mailing list