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
5b5f7528
Commit
5b5f7528
authored
Dec 08, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use proper enum type in arb_program_shader.c.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
279c1dbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+4
-4
No files found.
dlls/wined3d/arb_program_shader.c
View file @
5b5f7528
...
...
@@ -1647,7 +1647,7 @@ static void pshader_hw_bem(const struct wined3d_shader_instruction *ins)
shader_addline
(
buffer
,
"ADD %s, %s, TC;
\n
"
,
dst_name
,
src_name
[
0
]);
}
static
DWORD
negate_modifiers
(
DWORD
mod
,
char
*
extra_char
)
static
enum
wined3d_shader_src_modifier
negate_modifiers
(
enum
wined3d_shader_src_modifier
mod
,
char
*
extra_char
)
{
*
extra_char
=
' '
;
switch
(
mod
)
...
...
@@ -1665,8 +1665,8 @@ static DWORD negate_modifiers(DWORD mod, char *extra_char)
case
WINED3DSPSM_DW
:
*
extra_char
=
'-'
;
return
WINED3DSPSM_DW
;
case
WINED3DSPSM_ABS
:
return
WINED3DSPSM_ABSNEG
;
case
WINED3DSPSM_ABSNEG
:
return
WINED3DSPSM_ABS
;
case
WINED3DSPSM_NOT
:
FIXME
(
"Unknown modifier %u
\n
"
,
mod
);
}
FIXME
(
"Unknown modifier %u
\n
"
,
mod
);
return
mod
;
}
...
...
@@ -2511,7 +2511,7 @@ static void shader_hw_mnxn(const struct wined3d_shader_instruction *ins)
}
}
static
DWORD
abs_modifier
(
DWORD
mod
,
BOOL
*
need_abs
)
static
enum
wined3d_shader_src_modifier
abs_modifier
(
enum
wined3d_shader_src_modifier
mod
,
BOOL
*
need_abs
)
{
*
need_abs
=
FALSE
;
...
...
@@ -2530,8 +2530,8 @@ static DWORD abs_modifier(DWORD mod, BOOL *need_abs)
case
WINED3DSPSM_DW
:
*
need_abs
=
TRUE
;
return
WINED3DSPSM_DW
;
case
WINED3DSPSM_ABS
:
return
WINED3DSPSM_ABS
;
case
WINED3DSPSM_ABSNEG
:
return
WINED3DSPSM_ABS
;
case
WINED3DSPSM_NOT
:
FIXME
(
"Unknown modifier %u
\n
"
,
mod
);
}
FIXME
(
"Unknown modifier %u
\n
"
,
mod
);
return
mod
;
}
...
...
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