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
45509911
Commit
45509911
authored
Dec 09, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Reduce usage of long integral types in state.c.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
4d484183
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
state.c
dlls/wined3d/state.c
+4
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/state.c
View file @
45509911
...
...
@@ -2193,7 +2193,7 @@ static void state_swvp(struct wined3d_context *context, const struct wined3d_sta
}
}
static
void
get_src_and_opr
(
DWORD
arg
,
BOOL
is_alpha
,
GLenum
*
source
,
GLenum
*
operand
)
{
static
void
get_src_and_opr
(
uint32_t
arg
,
BOOL
is_alpha
,
GLenum
*
source
,
GLenum
*
operand
)
{
/* The WINED3DTA_ALPHAREPLICATE flag specifies the alpha component of the
* input should be used for all input components. The WINED3DTA_COMPLEMENT
* flag specifies the complement of the input should be used. */
...
...
@@ -2233,7 +2233,7 @@ static void get_src_and_opr(DWORD arg, BOOL is_alpha, GLenum* source, GLenum* op
/* Setup the texture operations texture stage states */
static
void
set_tex_op
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_state
*
state
,
BOOL
isAlpha
,
int
Stage
,
enum
wined3d_texture_op
op
,
DWORD
arg1
,
DWORD
arg2
,
DWORD
arg3
)
BOOL
isAlpha
,
int
Stage
,
enum
wined3d_texture_op
op
,
uint32_t
arg1
,
uint32_t
arg2
,
uint32_t
arg3
)
{
GLenum
src1
,
src2
,
src3
;
GLenum
opr1
,
opr2
,
opr3
;
...
...
@@ -5633,7 +5633,7 @@ static void validate_state_table(struct wined3d_state_entry *state_table)
{
206
,
209
},
{
0
,
0
},
};
static
const
DWORD
simple_states
[]
=
static
const
unsigned
int
simple_states
[]
=
{
STATE_MATERIAL
,
STATE_VDECL
,
...
...
@@ -5693,7 +5693,7 @@ static void validate_state_table(struct wined3d_state_entry *state_table)
for
(
i
=
0
;
i
<
STATE_HIGHEST
+
1
;
++
i
)
{
DWORD
rep
=
state_table
[
i
].
representative
;
unsigned
int
rep
=
state_table
[
i
].
representative
;
if
(
rep
)
{
if
(
state_table
[
rep
].
representative
!=
rep
)
...
...
dlls/wined3d/wined3d_private.h
View file @
45509911
...
...
@@ -2808,7 +2808,7 @@ struct wined3d_state_entry
struct
wined3d_state_entry_template
{
DWORD
state
;
unsigned
int
state
;
struct
wined3d_state_entry
content
;
unsigned
int
extension
;
};
...
...
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