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
3eb26010
Commit
3eb26010
authored
Sep 26, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Fix shader constant byte calculation.
parent
e817bc3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
shader.c
dlls/d3dx9_36/shader.c
+1
-10
No files found.
dlls/d3dx9_36/shader.c
View file @
3eb26010
...
...
@@ -671,15 +671,6 @@ static inline int is_vertex_shader(DWORD version)
return
(
version
&
0xFFFF0000
)
==
0xFFFE0000
;
}
static
DWORD
calc_bytes
(
D3DXCONSTANT_DESC
*
desc
)
{
if
(
desc
->
RegisterSet
!=
D3DXRS_FLOAT4
&&
desc
->
RegisterSet
!=
D3DXRS_SAMPLER
)
FIXME
(
"Don't know how to calculate Bytes for constants of type %s
\n
"
,
debug_d3dxparameter_registerset
(
desc
->
RegisterSet
));
return
4
*
desc
->
Elements
*
desc
->
Rows
*
desc
->
Columns
;
}
static
inline
struct
ctab_constant
*
constant_from_handle
(
D3DXHANDLE
handle
)
{
return
(
struct
ctab_constant
*
)
handle
;
...
...
@@ -1656,7 +1647,7 @@ static HRESULT parse_ctab_constant_type(const char *ctab, DWORD typeoffset, stru
}
constant
->
desc
.
RegisterCount
=
max
(
0
,
min
(
max
-
index
,
size
));
constant
->
desc
.
Bytes
=
calc_bytes
(
&
constant
->
desc
)
;
constant
->
desc
.
Bytes
=
4
*
constant
->
desc
.
Elements
*
type
->
Rows
*
type
->
Columns
;
return
D3D_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