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
379f4009
Commit
379f4009
authored
Aug 31, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Sep 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add glFlush when clearing the front buffer in ClearSurface.
parent
d67986b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
device.c
dlls/wined3d/device.c
+9
-0
No files found.
dlls/wined3d/device.c
View file @
379f4009
...
@@ -4995,6 +4995,7 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfa
...
@@ -4995,6 +4995,7 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfa
WINED3DVIEWPORT
*
vp
=
&
This
->
stateBlock
->
viewport
;
WINED3DVIEWPORT
*
vp
=
&
This
->
stateBlock
->
viewport
;
UINT
drawable_width
,
drawable_height
;
UINT
drawable_width
,
drawable_height
;
IWineD3DSurfaceImpl
*
depth_stencil
=
(
IWineD3DSurfaceImpl
*
)
This
->
stencilBufferTarget
;
IWineD3DSurfaceImpl
*
depth_stencil
=
(
IWineD3DSurfaceImpl
*
)
This
->
stencilBufferTarget
;
IWineD3DSwapChainImpl
*
swapchain
=
NULL
;
/* When we're clearing parts of the drawable, make sure that the target surface is well up to date in the
/* When we're clearing parts of the drawable, make sure that the target surface is well up to date in the
* drawable. After the clear we'll mark the drawable up to date, so we have to make sure that this is true
* drawable. After the clear we'll mark the drawable up to date, so we have to make sure that this is true
...
@@ -5164,6 +5165,14 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfa
...
@@ -5164,6 +5165,14 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfa
LEAVE_GL
();
LEAVE_GL
();
IWineD3DSurface_GetContainer
(
(
IWineD3DSurface
*
)
target
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
);
if
(
swapchain
)
{
if
(
target
==
(
IWineD3DSurfaceImpl
*
)
swapchain
->
frontBuffer
)
{
glFlush
();
}
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
}
return
WINED3D_OK
;
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