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
1dbc9d50
Commit
1dbc9d50
authored
Dec 10, 2007
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Dec 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Improve thread safety in IWineD3DSurfaceImpl_BltOverride.
parent
3e005ce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
surface.c
dlls/wined3d/surface.c
+5
-0
No files found.
dlls/wined3d/surface.c
View file @
1dbc9d50
...
...
@@ -3236,6 +3236,9 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
return
WINED3DERR_INVALIDCALL
;
}
ActivateContext
(
myDevice
,
(
IWineD3DSurface
*
)
This
,
CTXUSAGE_RESOURCELOAD
);
ENTER_GL
();
TRACE
(
"Calling GetSwapChain with mydevice = %p
\n
"
,
myDevice
);
if
(
dstSwapchain
&&
dstSwapchain
->
backBuffer
&&
This
==
(
IWineD3DSurfaceImpl
*
)
dstSwapchain
->
backBuffer
[
0
])
{
glDrawBuffer
(
GL_BACK
);
...
...
@@ -3247,6 +3250,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
glDrawBuffer
(
myDevice
->
offscreenBuffer
);
checkGLcall
(
"glDrawBuffer(myDevice->offscreenBuffer3)"
);
}
else
{
LEAVE_GL
();
TRACE
(
"Surface is higher back buffer, falling back to software
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -3268,6 +3272,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
glDrawBuffer
(
GL_BACK
);
}
vcheckGLcall
(
"glDrawBuffer"
);
LEAVE_GL
();
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