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
1d4a4b75
Commit
1d4a4b75
authored
Mar 27, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: When changing the back buffers also update the render target.
parent
03e9e5b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
device.c
dlls/ddraw/device.c
+5
-0
direct3d.c
dlls/ddraw/direct3d.c
+4
-0
No files found.
dlls/ddraw/device.c
View file @
1d4a4b75
...
...
@@ -308,6 +308,11 @@ IDirect3DDeviceImpl_7_Release(IDirect3DDevice7 *iface)
/* Restore the render targets */
if
(
This
->
OffScreenTarget
)
{
/* Set the device up to render to the front buffer since the back buffer will
* vanish soon.
*/
IWineD3DDevice_SetRenderTarget
(
This
->
wineD3DDevice
,
0
,
This
->
ddraw
->
d3d_target
->
WineD3DSurface
);
/* This->target is the offscreen target.
* This->ddraw->d3d_target is the target used by DDraw
*/
...
...
dlls/ddraw/direct3d.c
View file @
1d4a4b75
...
...
@@ -855,6 +855,10 @@ IDirect3DImpl_7_CreateDevice(IDirect3D7 *iface,
if
(
hr
!=
D3D_OK
)
ERR
(
"(%p) Error %08x setting the front and back buffer
\n
"
,
This
,
hr
);
/* Render to the back buffer */
IWineD3DDevice_SetRenderTarget
(
This
->
wineD3DDevice
,
0
,
target
->
WineD3DSurface
);
object
->
OffScreenTarget
=
TRUE
;
}
else
...
...
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