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
b0c46737
Commit
b0c46737
authored
Jul 24, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Update the surface locations in Present.
parent
851dd733
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
swapchain.c
dlls/wined3d/swapchain.c
+19
-0
No files found.
dlls/wined3d/swapchain.c
View file @
b0c46737
...
...
@@ -309,11 +309,30 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
IWineD3DSurfaceImpl
*
back
=
(
IWineD3DSurfaceImpl
*
)
This
->
backBuffer
[
0
];
if
(
front
->
resource
.
size
==
back
->
resource
.
size
)
{
DWORD
fbflags
;
flip_surface
(
front
,
back
);
/* Tell the front buffer surface that is has been modified. However,
* the other locations were preserved during that, so keep the flags.
* This serves to update the emulated overlay, if any
*/
fbflags
=
front
->
Flags
;
IWineD3DSurface_ModifyLocation
(
This
->
frontBuffer
,
SFLAG_INDRAWABLE
,
TRUE
);
front
->
Flags
=
fbflags
;
}
else
{
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
front
,
SFLAG_INDRAWABLE
,
TRUE
);
IWineD3DSurface_ModifyLocation
((
IWineD3DSurface
*
)
back
,
SFLAG_INDRAWABLE
,
TRUE
);
}
}
else
{
IWineD3DSurface_ModifyLocation
(
This
->
frontBuffer
,
SFLAG_INDRAWABLE
,
TRUE
);
/* If the swapeffect is DISCARD, the back buffer is undefined. That means the SYSMEM
* and INTEXTURE copies can keep their old content if they have any defined content.
* If the swapeffect is COPY, the content remains the same. If it is FLIP however,
* the texture / sysmem copy needs to be reloaded from the drawable
*/
if
(
This
->
presentParms
.
SwapEffect
==
WINED3DSWAPEFFECT_FLIP
)
{
IWineD3DSurface_ModifyLocation
(
This
->
backBuffer
[
0
],
SFLAG_INDRAWABLE
,
TRUE
);
}
}
if
(
This
->
presentParms
.
PresentationInterval
!=
WINED3DPRESENT_INTERVAL_IMMEDIATE
&&
GL_SUPPORT
(
SGI_VIDEO_SYNC
))
{
...
...
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