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
44d419ad
Commit
44d419ad
authored
Aug 04, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Call glFlush outside the GL lock.
parent
da335a6c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
device.c
dlls/wined3d/device.c
+3
-3
surface.c
dlls/wined3d/surface.c
+5
-7
No files found.
dlls/wined3d/device.c
View file @
44d419ad
...
...
@@ -4945,10 +4945,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_EndScene(IWineD3DDevice *iface) {
ActivateContext
(
This
,
This
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
/* We only have to do this if we need to read the, swapbuffers performs a flush for us */
ENTER_GL
();
glFlush
();
checkGLcall
(
"glFlush"
);
LEAVE_GL
();
/* No checkGLcall here to avoid locking the lock just for checking a call that hardly ever
* fails
*/
This
->
inScene
=
FALSE
;
return
WINED3D_OK
;
...
...
dlls/wined3d/surface.c
View file @
44d419ad
...
...
@@ -3438,10 +3438,6 @@ 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
&&
(
This
==
(
IWineD3DSurfaceImpl
*
)
dstSwapchain
->
frontBuffer
||
dstSwapchain
->
num_contexts
>=
2
))
glFlush
();
glBindTexture
(
Src
->
glDescription
.
target
,
0
);
checkGLcall
(
"glBindTexture(Src->glDescription.target, 0)"
);
/* Leave the opengl state valid for blitting */
...
...
@@ -3465,6 +3461,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
LEAVE_GL
();
/* Flush in case the drawable is used by multiple GL contexts */
if
(
dstSwapchain
&&
(
This
==
(
IWineD3DSurfaceImpl
*
)
dstSwapchain
->
frontBuffer
||
dstSwapchain
->
num_contexts
>=
2
))
glFlush
();
/* TODO: If the surface is locked often, perform the Blt in software on the memory instead */
/* The surface is now in the drawable. On onscreen surfaces or without fbos the texture
* is outdated now
...
...
@@ -3729,9 +3729,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_RealizePalette(IWineD3DSurface *iface) {
/* Without this some palette updates are missed. This at least happens on Nvidia drivers but
* it works fine using Mesa. */
ENTER_GL
();
glFlush
();
LEAVE_GL
();
}
else
{
if
(
!
(
This
->
Flags
&
SFLAG_INSYSMEM
))
{
TRACE
(
"Palette changed with surface that does not have an up to date system memory copy
\n
"
);
...
...
@@ -4183,6 +4181,7 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
glDisable
(
GL_TEXTURE_2D
);
checkGLcall
(
"glDisable(GL_TEXTURE_2D)"
);
}
LEAVE_GL
();
hr
=
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
);
if
(
hr
==
WINED3D_OK
&&
swapchain
)
{
...
...
@@ -4204,7 +4203,6 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
IWineD3DBaseTexture_Release
(
texture
);
}
}
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