Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
808e9267
Commit
808e9267
authored
Jan 03, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DCULL typedef.
parent
863578cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
state.c
dlls/wined3d/state.c
+4
-4
stateblock.c
dlls/wined3d/stateblock.c
+1
-1
wined3d.h
include/wine/wined3d.h
+5
-6
No files found.
dlls/wined3d/state.c
View file @
808e9267
...
...
@@ -129,24 +129,24 @@ static void state_cullmode(struct wined3d_context *context, const struct wined3d
* offscreen / onscreen rendering switch. */
switch
(
state
->
render_states
[
WINED3D_RS_CULLMODE
])
{
case
WINED3DCULL_NONE
:
case
WINED3D
_
CULL_NONE
:
glDisable
(
GL_CULL_FACE
);
checkGLcall
(
"glDisable GL_CULL_FACE"
);
break
;
case
WINED3DCULL_CW
:
case
WINED3D
_
CULL_CW
:
glEnable
(
GL_CULL_FACE
);
checkGLcall
(
"glEnable GL_CULL_FACE"
);
glCullFace
(
GL_FRONT
);
checkGLcall
(
"glCullFace(GL_FRONT)"
);
break
;
case
WINED3DCULL_CCW
:
case
WINED3D
_
CULL_CCW
:
glEnable
(
GL_CULL_FACE
);
checkGLcall
(
"glEnable GL_CULL_FACE"
);
glCullFace
(
GL_BACK
);
checkGLcall
(
"glCullFace(GL_BACK)"
);
break
;
default:
FIXME
(
"Unrecognized
/Unhandled WINED3DCULL valu
e %#x.
\n
"
,
FIXME
(
"Unrecognized
cull mod
e %#x.
\n
"
,
state
->
render_states
[
WINED3D_RS_CULLMODE
]);
}
}
...
...
dlls/wined3d/stateblock.c
View file @
808e9267
...
...
@@ -1133,7 +1133,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
state
->
render_states
[
WINED3D_RS_LASTPIXEL
]
=
TRUE
;
state
->
render_states
[
WINED3D_RS_SRCBLEND
]
=
WINED3D_BLEND_ONE
;
state
->
render_states
[
WINED3D_RS_DESTBLEND
]
=
WINED3D_BLEND_ZERO
;
state
->
render_states
[
WINED3D_RS_CULLMODE
]
=
WINED3DCULL_CCW
;
state
->
render_states
[
WINED3D_RS_CULLMODE
]
=
WINED3D
_
CULL_CCW
;
state
->
render_states
[
WINED3D_RS_ZFUNC
]
=
WINED3D_CMP_LESSEQUAL
;
state
->
render_states
[
WINED3D_RS_ALPHAFUNC
]
=
WINED3D_CMP_ALWAYS
;
state
->
render_states
[
WINED3D_RS_ALPHAREF
]
=
0
;
...
...
include/wine/wined3d.h
View file @
808e9267
...
...
@@ -462,13 +462,12 @@ enum wined3d_fill_mode
WINED3D_FILL_SOLID
=
3
,
};
typedef
enum
_WINED3DCULL
enum
wined3d_cull
{
WINED3DCULL_NONE
=
1
,
WINED3DCULL_CW
=
2
,
WINED3DCULL_CCW
=
3
,
WINED3DCULL_FORCE_DWORD
=
0x7fffffff
}
WINED3DCULL
;
WINED3D_CULL_NONE
=
1
,
WINED3D_CULL_CW
=
2
,
WINED3D_CULL_CCW
=
3
,
};
typedef
enum
_WINED3DSTENCILOP
{
...
...
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