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
cb5ce03d
Commit
cb5ce03d
authored
Sep 30, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: SetRenderTarget resets the scissor rect.
parent
4a3f04cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
device.c
dlls/wined3d/device.c
+9
-2
No files found.
dlls/wined3d/device.c
View file @
cb5ce03d
...
...
@@ -6164,8 +6164,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface,
/* Render target 0 is special */
if
(
RenderTargetIndex
==
0
&&
dxVersion
>
7
)
{
/* Finally, reset the viewport as the MSDN states. Tests show that stateblock recording is ignored.
* the change goes directly into the primary stateblock.
/* Finally, reset the viewport and scissor rect as the MSDN states.
* Tests show that stateblock recording is ignored, the change goes
* directly into the primary stateblock.
*/
This
->
stateBlock
->
viewport
.
Height
=
((
IWineD3DSurfaceImpl
*
)
This
->
render_targets
[
0
])
->
currentDesc
.
Height
;
This
->
stateBlock
->
viewport
.
Width
=
((
IWineD3DSurfaceImpl
*
)
This
->
render_targets
[
0
])
->
currentDesc
.
Width
;
...
...
@@ -6174,6 +6175,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface,
This
->
stateBlock
->
viewport
.
MaxZ
=
1
.
0
f
;
This
->
stateBlock
->
viewport
.
MinZ
=
0
.
0
f
;
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_VIEWPORT
);
This
->
stateBlock
->
scissorRect
.
top
=
0
;
This
->
stateBlock
->
scissorRect
.
left
=
0
;
This
->
stateBlock
->
scissorRect
.
right
=
This
->
stateBlock
->
viewport
.
Width
;
This
->
stateBlock
->
scissorRect
.
bottom
=
This
->
stateBlock
->
viewport
.
Height
;
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_SCISSORRECT
);
}
return
WINED3D_OK
;
}
...
...
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