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
565fcbdf
Commit
565fcbdf
authored
Jul 14, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the clip status code.
I'm pretty sure this is just broken, and I'm not aware of any application using this.
parent
5e83efa1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
23 deletions
+0
-23
device.c
dlls/wined3d/device.c
+0
-6
state.c
dlls/wined3d/state.c
+0
-12
stateblock.c
dlls/wined3d/stateblock.c
+0
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/device.c
View file @
565fcbdf
...
...
@@ -2242,9 +2242,6 @@ HRESULT CDECL wined3d_device_set_clip_status(struct wined3d_device *device, cons
if
(
!
clip_status
)
return
WINED3DERR_INVALIDCALL
;
device
->
updateStateBlock
->
state
.
clip_status
.
ClipUnion
=
clip_status
->
ClipUnion
;
device
->
updateStateBlock
->
state
.
clip_status
.
ClipIntersection
=
clip_status
->
ClipIntersection
;
return
WINED3D_OK
;
}
...
...
@@ -2255,9 +2252,6 @@ HRESULT CDECL wined3d_device_get_clip_status(struct wined3d_device *device, WINE
if
(
!
clip_status
)
return
WINED3DERR_INVALIDCALL
;
clip_status
->
ClipUnion
=
device
->
updateStateBlock
->
state
.
clip_status
.
ClipUnion
;
clip_status
->
ClipIntersection
=
device
->
updateStateBlock
->
state
.
clip_status
.
ClipIntersection
;
return
WINED3D_OK
;
}
...
...
dlls/wined3d/state.c
View file @
565fcbdf
...
...
@@ -573,18 +573,6 @@ static void state_clipping(DWORD state_id, struct wined3d_stateblock *stateblock
if
(
disable
&
WINED3DCLIPPLANE3
)
{
glDisable
(
GL_CLIP_PLANE3
);
checkGLcall
(
"glDisable(clip plane 3)"
);
}
if
(
disable
&
WINED3DCLIPPLANE4
)
{
glDisable
(
GL_CLIP_PLANE4
);
checkGLcall
(
"glDisable(clip plane 4)"
);
}
if
(
disable
&
WINED3DCLIPPLANE5
)
{
glDisable
(
GL_CLIP_PLANE5
);
checkGLcall
(
"glDisable(clip plane 5)"
);
}
/** update clipping status */
if
(
enable
)
{
stateblock
->
state
.
clip_status
.
ClipUnion
=
0
;
stateblock
->
state
.
clip_status
.
ClipIntersection
=
0xFFFFFFFF
;
}
else
{
stateblock
->
state
.
clip_status
.
ClipUnion
=
0
;
stateblock
->
state
.
clip_status
.
ClipIntersection
=
0
;
}
}
static
void
state_blendop_w
(
DWORD
state
,
struct
wined3d_stateblock
*
stateblock
,
struct
wined3d_context
*
context
)
...
...
dlls/wined3d/stateblock.c
View file @
565fcbdf
...
...
@@ -1233,10 +1233,6 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
state
->
render_states
[
WINED3DRS_DESTBLENDALPHA
]
=
WINED3DBLEND_ZERO
;
state
->
render_states
[
WINED3DRS_BLENDOPALPHA
]
=
WINED3DBLENDOP_ADD
;
/* clipping status */
state
->
clip_status
.
ClipUnion
=
0
;
state
->
clip_status
.
ClipIntersection
=
0xFFFFFFFF
;
/* Texture Stage States - Put directly into state block, we will call function below */
for
(
i
=
0
;
i
<
MAX_TEXTURES
;
++
i
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
565fcbdf
...
...
@@ -2265,7 +2265,6 @@ struct wined3d_state
WINED3DMATRIX
transforms
[
HIGHEST_TRANSFORMSTATE
+
1
];
double
clip_planes
[
MAX_CLIPPLANES
][
4
];
WINED3DCLIPSTATUS
clip_status
;
WINED3DMATERIAL
material
;
WINED3DVIEWPORT
viewport
;
RECT
scissor_rect
;
...
...
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