Module: wine Branch: master Commit: 844dda20ff3d1a04ea80a1290fb58d6bc981cea7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=844dda20ff3d1a04ea80a1290f...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Wed Sep 30 10:49:10 2009 +0200
wined3d: Make some internal stateblock function arguments const.
---
dlls/wined3d/stateblock.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 91bd925..e568ec6 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -164,7 +164,7 @@ static void stateblock_savedstates_set(SAVEDSTATES *states, BOOL value, const st memset(states->vertexShaderConstantsF, value, sizeof(BOOL) * gl_info->max_vshader_constantsF); }
-static void stateblock_copy(IWineD3DStateBlockImpl *dst, IWineD3DStateBlockImpl *src) +static void stateblock_copy(IWineD3DStateBlockImpl *dst, const IWineD3DStateBlockImpl *src) { const struct wined3d_gl_info *gl_info = &src->wineD3DDevice->adapter->gl_info; unsigned int l; @@ -331,7 +331,8 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_GetDevice(IWineD3DStateBlock *ifac
}
-static inline void record_lights(IWineD3DStateBlockImpl *This, IWineD3DStateBlockImpl *targetStateBlock) { +static void record_lights(IWineD3DStateBlockImpl *This, const IWineD3DStateBlockImpl *targetStateBlock) +{ UINT i;
/* Lights... For a recorded state block, we just had a chain of actions to perform, @@ -744,7 +745,8 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_Capture(IWineD3DStateBlock *iface) return WINED3D_OK; }
-static inline void apply_lights(IWineD3DDevice *pDevice, IWineD3DStateBlockImpl *This) { +static void apply_lights(IWineD3DDevice *pDevice, const IWineD3DStateBlockImpl *This) +{ UINT i; for(i = 0; i < LIGHTMAP_SIZE; i++) { struct list *e;