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
9b0d661e
Commit
9b0d661e
authored
Nov 08, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Flush GL calls after drawing to the drawable. This fixes apps that use…
wined3d: Flush GL calls after drawing to the drawable. This fixes apps that use multiple GL contexts.
parent
aaa93200
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
surface.c
dlls/wined3d/surface.c
+15
-0
No files found.
dlls/wined3d/surface.c
View file @
9b0d661e
...
...
@@ -3131,6 +3131,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
checkGLcall
(
"glDisable(GL_ALPHA_TEST)"
);
}
/* Flush in case the drawable is used by multiple GL contexts */
if
(
dstSwapchain
&&
(
dstSwapchain
->
num_contexts
>=
2
))
glFlush
();
/* Unbind the texture */
glBindTexture
(
GL_TEXTURE_2D
,
0
);
checkGLcall
(
"glEnable glBindTexture"
);
...
...
@@ -3481,6 +3485,8 @@ struct coords {
static
inline
void
surface_blt_to_drawable
(
IWineD3DSurfaceImpl
*
This
,
const
RECT
*
rect_in
)
{
struct
coords
coords
[
4
];
RECT
rect
;
IWineD3DSwapChain
*
swapchain
=
NULL
;
HRESULT
hr
;
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
wineD3DDevice
;
if
(
rect_in
)
{
...
...
@@ -3602,6 +3608,15 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
glDisable
(
GL_TEXTURE_CUBE_MAP_ARB
);
checkGLcall
(
"glDisable(GL_TEXTURE_CUBE_MAP_ARB)"
);
}
hr
=
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
);
if
(
hr
==
WINED3D_OK
&&
swapchain
)
{
/* Make sure to flush the buffers. This is needed in apps like Red Alert II and Tiberian SUN that use multiple WGL contexts. */
if
(((
IWineD3DSwapChainImpl
*
)
swapchain
)
->
num_contexts
>=
2
)
glFlush
();
IWineD3DSwapChain_Release
(
swapchain
);
}
LEAVE_GL
();
}
...
...
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