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
c922278b
Commit
c922278b
authored
Oct 30, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Oct 30, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Culling to different viewports failed as clearing the whole viewport
cleared the screen.
parent
03711317
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
device.c
dlls/d3d8/device.c
+8
-0
No files found.
dlls/d3d8/device.c
View file @
c922278b
...
...
@@ -1349,6 +1349,8 @@ HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD Count
Count
,
pRects
,
Flags
,
Z
,
Stencil
);
ENTER_GL
();
glEnable
(
GL_SCISSOR_TEST
);
checkGLcall
(
"glEnable GL_SCISSOR_TEST"
);
if
(
Count
>
0
&&
pRects
)
{
glEnable
(
GL_SCISSOR_TEST
);
checkGLcall
(
"glEnable GL_SCISSOR_TEST"
);
...
...
@@ -1397,6 +1399,12 @@ HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD Count
glScissor
(
curRect
->
x1
,
(
This
->
PresentParms
.
BackBufferHeight
-
curRect
->
y2
),
curRect
->
x2
-
curRect
->
x1
,
curRect
->
y2
-
curRect
->
y1
);
checkGLcall
(
"glScissor"
);
}
else
{
glScissor
(
This
->
StateBlock
->
viewport
.
X
,
(
This
->
PresentParms
.
BackBufferHeight
-
(
This
->
StateBlock
->
viewport
.
Y
+
This
->
StateBlock
->
viewport
.
Height
)),
This
->
StateBlock
->
viewport
.
Width
,
This
->
StateBlock
->
viewport
.
Height
);
checkGLcall
(
"glScissor"
);
}
/* Clear the selected rectangle (or full screen) */
...
...
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