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
f9786d7e
Commit
f9786d7e
authored
Sep 28, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just use the actual array size as argument to memcpy() in stateblock_copy().
parent
26db0be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
stateblock.c
dlls/wined3d/stateblock.c
+16
-16
No files found.
dlls/wined3d/stateblock.c
View file @
f9786d7e
...
...
@@ -222,22 +222,22 @@ void stateblock_copy(
}
/* Fixed size arrays */
memcpy
(
Dest
->
vertexShaderConstantB
,
This
->
vertexShaderConstantB
,
sizeof
(
BOOL
)
*
MAX_CONST_B
);
memcpy
(
Dest
->
vertexShaderConstantI
,
This
->
vertexShaderConstantI
,
sizeof
(
INT
)
*
MAX_CONST_I
*
4
);
memcpy
(
Dest
->
pixelShaderConstantB
,
This
->
pixelShaderConstantB
,
sizeof
(
BOOL
)
*
MAX_CONST_B
);
memcpy
(
Dest
->
pixelShaderConstantI
,
This
->
pixelShaderConstantI
,
sizeof
(
INT
)
*
MAX_CONST_I
*
4
);
memcpy
(
Dest
->
streamStride
,
This
->
streamStride
,
sizeof
(
UINT
)
*
MAX_STREAMS
);
memcpy
(
Dest
->
streamOffset
,
This
->
streamOffset
,
sizeof
(
UINT
)
*
MAX_STREAMS
);
memcpy
(
Dest
->
streamSource
,
This
->
streamSource
,
sizeof
(
IWineD3DBuffer
*
)
*
MAX_STREAMS
);
memcpy
(
Dest
->
streamFreq
,
This
->
streamFreq
,
sizeof
(
UINT
)
*
MAX_STREAMS
);
memcpy
(
Dest
->
streamFlags
,
This
->
streamFlags
,
sizeof
(
UINT
)
*
MAX_STREAMS
);
memcpy
(
Dest
->
transforms
,
This
->
transforms
,
sizeof
(
WINED3DMATRIX
)
*
(
HIGHEST_TRANSFORMSTATE
+
1
));
memcpy
(
Dest
->
clipplane
,
This
->
clipplane
,
sizeof
(
double
)
*
MAX_CLIPPLANES
*
4
);
memcpy
(
Dest
->
renderState
,
This
->
renderState
,
sizeof
(
DWORD
)
*
(
WINEHIGHEST_RENDER_STATE
+
1
));
memcpy
(
Dest
->
textures
,
This
->
textures
,
sizeof
(
IWineD3DBaseTexture
*
)
*
MAX_COMBINED_SAMPLERS
);
memcpy
(
Dest
->
textureState
,
This
->
textureState
,
sizeof
(
D
WORD
)
*
MAX_TEXTURES
*
(
WINED3D_HIGHEST_TEXTURE_STATE
+
1
));
memcpy
(
Dest
->
samplerState
,
This
->
samplerState
,
sizeof
(
D
WORD
)
*
MAX_COMBINED_SAMPLERS
*
(
WINED3D_HIGHEST_SAMPLER_STATE
+
1
));
memcpy
(
Dest
->
vertexShaderConstantB
,
This
->
vertexShaderConstantB
,
sizeof
(
Dest
->
vertexShaderConstantB
)
);
memcpy
(
Dest
->
vertexShaderConstantI
,
This
->
vertexShaderConstantI
,
sizeof
(
Dest
->
vertexShaderConstantI
)
);
memcpy
(
Dest
->
pixelShaderConstantB
,
This
->
pixelShaderConstantB
,
sizeof
(
Dest
->
pixelShaderConstantB
)
);
memcpy
(
Dest
->
pixelShaderConstantI
,
This
->
pixelShaderConstantI
,
sizeof
(
Dest
->
pixelShaderConstantI
)
);
memcpy
(
Dest
->
streamStride
,
This
->
streamStride
,
sizeof
(
Dest
->
streamStride
)
);
memcpy
(
Dest
->
streamOffset
,
This
->
streamOffset
,
sizeof
(
Dest
->
streamOffset
)
);
memcpy
(
Dest
->
streamSource
,
This
->
streamSource
,
sizeof
(
Dest
->
streamSource
)
);
memcpy
(
Dest
->
streamFreq
,
This
->
streamFreq
,
sizeof
(
Dest
->
streamFreq
)
);
memcpy
(
Dest
->
streamFlags
,
This
->
streamFlags
,
sizeof
(
Dest
->
streamFlags
)
);
memcpy
(
Dest
->
transforms
,
This
->
transforms
,
sizeof
(
Dest
->
transforms
));
memcpy
(
Dest
->
clipplane
,
This
->
clipplane
,
sizeof
(
Dest
->
clipplane
)
);
memcpy
(
Dest
->
renderState
,
This
->
renderState
,
sizeof
(
Dest
->
renderState
));
memcpy
(
Dest
->
textures
,
This
->
textures
,
sizeof
(
Dest
->
textures
)
);
memcpy
(
Dest
->
textureState
,
This
->
textureState
,
sizeof
(
D
est
->
textureState
));
memcpy
(
Dest
->
samplerState
,
This
->
samplerState
,
sizeof
(
D
est
->
samplerState
));
/* Dynamically sized arrays */
memcpy
(
Dest
->
vertexShaderConstantF
,
This
->
vertexShaderConstantF
,
sizeof
(
float
)
*
GL_LIMITS
(
vshader_constantsF
)
*
4
);
...
...
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