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
b77b72c9
Commit
b77b72c9
authored
Jul 20, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Jul 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Read shader constants from correct stateblock.
parent
dc3dd478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
device.c
dlls/wined3d/device.c
+6
-6
No files found.
dlls/wined3d/device.c
View file @
b77b72c9
...
...
@@ -4650,7 +4650,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantB(
if
(
dstData
==
NULL
||
cnt
<
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
dstData
,
&
This
->
updateS
tateBlock
->
vertexShaderConstantB
[
start
],
cnt
*
sizeof
(
BOOL
));
memcpy
(
dstData
,
&
This
->
s
tateBlock
->
vertexShaderConstantB
[
start
],
cnt
*
sizeof
(
BOOL
));
return
WINED3D_OK
;
}
...
...
@@ -4697,7 +4697,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantI(
if
(
dstData
==
NULL
||
cnt
<
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
dstData
,
&
This
->
updateS
tateBlock
->
vertexShaderConstantI
[
start
*
4
],
cnt
*
sizeof
(
int
)
*
4
);
memcpy
(
dstData
,
&
This
->
s
tateBlock
->
vertexShaderConstantI
[
start
*
4
],
cnt
*
sizeof
(
int
)
*
4
);
return
WINED3D_OK
;
}
...
...
@@ -4744,7 +4744,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetVertexShaderConstantF(
if
(
dstData
==
NULL
||
cnt
<
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
dstData
,
&
This
->
updateS
tateBlock
->
vertexShaderConstantF
[
start
*
4
],
cnt
*
sizeof
(
float
)
*
4
);
memcpy
(
dstData
,
&
This
->
s
tateBlock
->
vertexShaderConstantF
[
start
*
4
],
cnt
*
sizeof
(
float
)
*
4
);
return
WINED3D_OK
;
}
...
...
@@ -4832,7 +4832,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantB(
if
(
dstData
==
NULL
||
cnt
<
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
dstData
,
&
This
->
updateS
tateBlock
->
pixelShaderConstantB
[
start
],
cnt
*
sizeof
(
BOOL
));
memcpy
(
dstData
,
&
This
->
s
tateBlock
->
pixelShaderConstantB
[
start
],
cnt
*
sizeof
(
BOOL
));
return
WINED3D_OK
;
}
...
...
@@ -4879,7 +4879,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantI(
if
(
dstData
==
NULL
||
cnt
<
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
dstData
,
&
This
->
updateS
tateBlock
->
pixelShaderConstantI
[
start
*
4
],
cnt
*
sizeof
(
int
)
*
4
);
memcpy
(
dstData
,
&
This
->
s
tateBlock
->
pixelShaderConstantI
[
start
*
4
],
cnt
*
sizeof
(
int
)
*
4
);
return
WINED3D_OK
;
}
...
...
@@ -4926,7 +4926,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantF(
if
(
dstData
==
NULL
||
cnt
<
0
)
return
WINED3DERR_INVALIDCALL
;
memcpy
(
dstData
,
&
This
->
updateS
tateBlock
->
pixelShaderConstantF
[
start
*
4
],
cnt
*
sizeof
(
float
)
*
4
);
memcpy
(
dstData
,
&
This
->
s
tateBlock
->
pixelShaderConstantF
[
start
*
4
],
cnt
*
sizeof
(
float
)
*
4
);
return
WINED3D_OK
;
}
...
...
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