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
978971e1
Commit
978971e1
authored
Aug 21, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Aug 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: ID3DXConstantTable::SetMatrix should set scalar constants.
parent
77993a61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
shader.c
dlls/d3dx9_36/shader.c
+6
-0
shader.c
dlls/d3dx9_36/tests/shader.c
+10
-0
No files found.
dlls/d3dx9_36/shader.c
View file @
978971e1
...
...
@@ -988,6 +988,12 @@ static HRESULT set_matrix_array(ID3DXConstantTable *iface, IDirect3DDevice9 *dev
row_offset
=
4
;
registers_per_matrix
=
desc
.
Rows
;
}
else
if
(
desc
.
Class
==
D3DXPC_SCALAR
)
{
column_offset
=
1
;
row_offset
=
1
;
registers_per_matrix
=
1
;
}
else
{
FIXME
(
"Unhandled variable class %#x
\n
"
,
desc
.
Class
);
...
...
dlls/d3dx9_36/tests/shader.c
View file @
978971e1
...
...
@@ -636,6 +636,16 @@ static void test_setting_basic_table(IDirect3DDevice9 *device)
"The variable f was not set correctly by ID3DXConstantTable_SetVector, got %f, should be %f
\n
"
,
out
[
0
],
f4
.
x
);
memset
(
out
,
0
,
sizeof
(
out
));
IDirect3DDevice9_SetVertexShaderConstantF
(
device
,
6
,
out
,
1
);
res
=
ID3DXConstantTable_SetMatrix
(
ctable
,
device
,
"f"
,
&
mvp
);
ok
(
res
==
D3D_OK
,
"ID3DXConstantTable_SetMatrix failed on variable f: 0x%08x
\n
"
,
res
);
IDirect3DDevice9_GetVertexShaderConstantF
(
device
,
6
,
out
,
1
);
ok
(
out
[
0
]
==
U
(
S
(
mvp
)).
_11
&&
out
[
1
]
==
0
.
0
f
&&
out
[
2
]
==
0
.
0
f
&&
out
[
3
]
==
0
.
0
f
,
"The variable f was not set correctly by ID3DXConstantTable_SetMatrix, got %f, should be %f
\n
"
,
out
[
0
],
U
(
S
(
mvp
)).
_11
);
refcnt
=
ID3DXConstantTable_Release
(
ctable
);
ok
(
refcnt
==
0
,
"The constant table reference count was %u, should be 0
\n
"
,
refcnt
);
}
...
...
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