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
f870cf07
Commit
f870cf07
authored
Sep 21, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move clip status to wined3d_state.
parent
9ce3c61a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
device.c
dlls/wined3d/device.c
+4
-4
state.c
dlls/wined3d/state.c
+9
-6
stateblock.c
dlls/wined3d/stateblock.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-3
No files found.
dlls/wined3d/device.c
View file @
f870cf07
...
...
@@ -2862,8 +2862,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetClipStatus(IWineD3DDevice *iface,
if
(
!
pClipStatus
)
return
WINED3DERR_INVALIDCALL
;
This
->
updateStateBlock
->
clip_status
.
ClipUnion
=
pClipStatus
->
ClipUnion
;
This
->
updateStateBlock
->
clip_status
.
ClipIntersection
=
pClipStatus
->
ClipIntersection
;
This
->
updateStateBlock
->
state
.
clip_status
.
ClipUnion
=
pClipStatus
->
ClipUnion
;
This
->
updateStateBlock
->
state
.
clip_status
.
ClipIntersection
=
pClipStatus
->
ClipIntersection
;
return
WINED3D_OK
;
}
...
...
@@ -2874,8 +2874,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetClipStatus(IWineD3DDevice *iface,
if
(
!
pClipStatus
)
return
WINED3DERR_INVALIDCALL
;
pClipStatus
->
ClipUnion
=
This
->
updateStateBlock
->
clip_status
.
ClipUnion
;
pClipStatus
->
ClipIntersection
=
This
->
updateStateBlock
->
clip_status
.
ClipIntersection
;
pClipStatus
->
ClipUnion
=
This
->
updateStateBlock
->
state
.
clip_status
.
ClipUnion
;
pClipStatus
->
ClipIntersection
=
This
->
updateStateBlock
->
state
.
clip_status
.
ClipIntersection
;
return
WINED3D_OK
;
}
...
...
dlls/wined3d/state.c
View file @
f870cf07
...
...
@@ -616,12 +616,15 @@ static void state_clipping(DWORD state, IWineD3DStateBlockImpl *stateblock, stru
if
(
disable
&
WINED3DCLIPPLANE5
)
{
glDisable
(
GL_CLIP_PLANE5
);
checkGLcall
(
"glDisable(clip plane 5)"
);
}
/** update clipping status */
if
(
enable
)
{
stateblock
->
clip_status
.
ClipUnion
=
0
;
stateblock
->
clip_status
.
ClipIntersection
=
0xFFFFFFFF
;
}
else
{
stateblock
->
clip_status
.
ClipUnion
=
0
;
stateblock
->
clip_status
.
ClipIntersection
=
0
;
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
;
}
}
...
...
dlls/wined3d/stateblock.c
View file @
f870cf07
...
...
@@ -1251,8 +1251,8 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_BLENDOPALPHA
,
WINED3DBLENDOP_ADD
);
/* clipping status */
This
->
clip_status
.
ClipUnion
=
0
;
This
->
clip_status
.
ClipIntersection
=
0xFFFFFFFF
;
This
->
state
.
clip_status
.
ClipUnion
=
0
;
This
->
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 @
f870cf07
...
...
@@ -2375,6 +2375,7 @@ struct wined3d_state
WINED3DMATRIX
transforms
[
HIGHEST_TRANSFORMSTATE
+
1
];
double
clip_planes
[
MAX_CLIPPLANES
][
4
];
WINED3DCLIPSTATUS
clip_status
;
WINED3DMATERIAL
material
;
WINED3DVIEWPORT
viewport
;
RECT
scissor_rect
;
...
...
@@ -2402,9 +2403,6 @@ struct IWineD3DStateBlockImpl
SAVEDSTATES
changed
;
struct
wined3d_state
state
;
/* Clipping */
WINED3DCLIPSTATUS
clip_status
;
/* Contained state management */
DWORD
contained_render_states
[
WINEHIGHEST_RENDER_STATE
+
1
];
unsigned
int
num_contained_render_states
;
...
...
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