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
d0afc756
Commit
d0afc756
authored
Feb 04, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Call SetDestWindowOverride() before acquiring a context.
parent
3df59ef0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
swapchain.c
dlls/wined3d/swapchain.c
+3
-6
No files found.
dlls/wined3d/swapchain.c
View file @
d0afc756
...
...
@@ -217,6 +217,8 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
unsigned
int
sync
;
int
retval
;
IWineD3DSwapChain_SetDestWindowOverride
(
iface
,
hDestWindowOverride
);
context
=
context_acquire
(
This
->
device
,
This
->
backBuffer
[
0
],
CTXUSAGE_RESOURCELOAD
);
/* Render the cursor onto the back buffer, using our nifty directdraw blitting code :-) */
...
...
@@ -274,11 +276,6 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
TRACE
(
"presetting HDC %p
\n
"
,
This
->
context
[
0
]
->
hdc
);
/* Don't call checkGLcall, as glGetError is not applicable here */
if
(
hDestWindowOverride
&&
This
->
win_handle
!=
hDestWindowOverride
)
{
IWineD3DSwapChain_SetDestWindowOverride
(
iface
,
hDestWindowOverride
);
}
render_to_fbo
=
This
->
render_to_fbo
;
if
(
pSourceRect
)
...
...
@@ -522,7 +519,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_SetDestWindowOverride(IWineD3DSwapCh
WINED3DLOCKED_RECT
r
;
BYTE
*
mem
;
if
(
window
==
This
->
win_handle
)
return
WINED3D_OK
;
if
(
!
window
||
window
==
This
->
win_handle
)
return
WINED3D_OK
;
TRACE
(
"Performing dest override of swapchain %p from window %p to %p
\n
"
,
This
,
This
->
win_handle
,
window
);
if
(
This
->
context
[
0
]
==
This
->
device
->
contexts
[
0
])
...
...
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