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
75fe879c
Commit
75fe879c
authored
Oct 01, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of stateblock_savedstates_copy().
This is redundant because we call stateblock_savedstates_set() further down.
parent
95573761
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
stateblock.c
dlls/wined3d/stateblock.c
+0
-38
No files found.
dlls/wined3d/stateblock.c
View file @
75fe879c
...
...
@@ -71,41 +71,6 @@ fail:
return
E_OUTOFMEMORY
;
}
/* Copy all members of one stateblock to another */
static
void
stateblock_savedstates_copy
(
SAVEDSTATES
*
dest
,
const
SAVEDSTATES
*
source
,
const
struct
wined3d_gl_info
*
gl_info
)
{
/* Single values */
dest
->
primitive_type
=
source
->
primitive_type
;
dest
->
indices
=
source
->
indices
;
dest
->
material
=
source
->
material
;
dest
->
viewport
=
source
->
viewport
;
dest
->
vertexDecl
=
source
->
vertexDecl
;
dest
->
pixelShader
=
source
->
pixelShader
;
dest
->
vertexShader
=
source
->
vertexShader
;
dest
->
scissorRect
=
dest
->
scissorRect
;
/* Fixed size arrays */
dest
->
streamSource
=
source
->
streamSource
;
dest
->
streamFreq
=
source
->
streamFreq
;
dest
->
textures
=
source
->
textures
;
memcpy
(
dest
->
transform
,
source
->
transform
,
sizeof
(
source
->
transform
));
memcpy
(
dest
->
renderState
,
source
->
renderState
,
sizeof
(
source
->
renderState
));
memcpy
(
dest
->
textureState
,
source
->
textureState
,
sizeof
(
source
->
textureState
));
memcpy
(
dest
->
samplerState
,
source
->
samplerState
,
sizeof
(
source
->
samplerState
));
dest
->
clipplane
=
source
->
clipplane
;
dest
->
pixelShaderConstantsB
=
source
->
pixelShaderConstantsB
;
dest
->
pixelShaderConstantsI
=
source
->
pixelShaderConstantsI
;
dest
->
vertexShaderConstantsB
=
source
->
vertexShaderConstantsB
;
dest
->
vertexShaderConstantsI
=
source
->
vertexShaderConstantsI
;
/* Dynamically sized arrays */
memcpy
(
dest
->
pixelShaderConstantsF
,
source
->
pixelShaderConstantsF
,
sizeof
(
BOOL
)
*
gl_info
->
max_pshader_constantsF
);
memcpy
(
dest
->
vertexShaderConstantsF
,
source
->
vertexShaderConstantsF
,
sizeof
(
BOOL
)
*
gl_info
->
max_vshader_constantsF
);
}
static
inline
void
stateblock_set_bits
(
DWORD
*
map
,
UINT
map_size
)
{
DWORD
mask
=
(
1
<<
(
map_size
&
0x1f
))
-
1
;
...
...
@@ -1484,9 +1449,6 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl *
/* Otherwise, might as well set the whole state block to the appropriate values */
if
(
device
->
stateBlock
)
{
/* Saved states */
stateblock_savedstates_copy
(
&
stateblock
->
changed
,
&
device
->
stateBlock
->
changed
,
gl_info
);
/* Saved values */
stateblock_copy_values
(
stateblock
,
device
->
stateBlock
,
gl_info
);
}
...
...
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