Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
844dda20
Commit
844dda20
authored
Sep 30, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make some internal stateblock function arguments const.
parent
5737efe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
stateblock.c
dlls/wined3d/stateblock.c
+5
-3
No files found.
dlls/wined3d/stateblock.c
View file @
844dda20
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment