Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8292c687
Commit
8292c687
authored
Aug 16, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the now redundant SFLAG_SWAPCHAIN surface flag.
parent
0b24db5d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
15 deletions
+3
-15
device.c
dlls/wined3d/device.c
+0
-10
surface.c
dlls/wined3d/surface.c
+3
-2
swapchain.c
dlls/wined3d/swapchain.c
+0
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/device.c
View file @
8292c687
...
...
@@ -5650,17 +5650,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa
TRACE
(
"Changing the front buffer from %p to %p.
\n
"
,
swapchain
->
front_buffer
,
front_impl
);
if
(
swapchain
->
front_buffer
)
{
surface_set_container
(
swapchain
->
front_buffer
,
WINED3D_CONTAINER_NONE
,
NULL
);
swapchain
->
front_buffer
->
Flags
&=
~
SFLAG_SWAPCHAIN
;
}
swapchain
->
front_buffer
=
front_impl
;
if
(
front_impl
)
{
surface_set_container
(
front_impl
,
WINED3D_CONTAINER_SWAPCHAIN
,
(
IWineD3DBase
*
)
swapchain
);
front_impl
->
Flags
|=
SFLAG_SWAPCHAIN
;
}
}
if
(
swapchain
->
back_buffers
[
0
]
!=
back_impl
)
...
...
@@ -5668,10 +5662,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa
TRACE
(
"Changing the back buffer from %p to %p.
\n
"
,
swapchain
->
back_buffers
[
0
],
back_impl
);
if
(
swapchain
->
back_buffers
[
0
])
{
surface_set_container
(
swapchain
->
back_buffers
[
0
],
WINED3D_CONTAINER_TEXTURE
,
NULL
);
swapchain
->
back_buffers
[
0
]
->
Flags
&=
~
SFLAG_SWAPCHAIN
;
}
swapchain
->
back_buffers
[
0
]
=
back_impl
;
if
(
back_impl
)
...
...
@@ -5682,7 +5673,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetFrontBackBuffers(IWineD3DDevice *ifa
swapchain
->
presentParms
.
BackBufferCount
=
1
;
surface_set_container
(
back_impl
,
WINED3D_CONTAINER_SWAPCHAIN
,
(
IWineD3DBase
*
)
swapchain
);
back_impl
->
Flags
|=
SFLAG_SWAPCHAIN
;
}
else
{
...
...
dlls/wined3d/surface.c
View file @
8292c687
...
...
@@ -1700,7 +1700,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED
}
if
(
!
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_DISABLE
&&
((
This
->
Flags
&
SFLAG
_SWAPCHAIN
)
||
This
==
device
->
render_targets
[
0
])))
&&
((
This
->
container
.
type
==
WINED3D_CONTAINER
_SWAPCHAIN
)
||
This
==
device
->
render_targets
[
0
])))
{
surface_load_location
(
This
,
SFLAG_INSYSMEM
,
pass_rect
);
}
...
...
@@ -1892,7 +1892,8 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
goto
unlock_end
;
}
if
((
This
->
Flags
&
SFLAG_SWAPCHAIN
)
||
(
device
->
render_targets
&&
This
==
device
->
render_targets
[
0
]))
if
(
This
->
container
.
type
==
WINED3D_CONTAINER_SWAPCHAIN
||
(
device
->
render_targets
&&
This
==
device
->
render_targets
[
0
]))
{
if
(
wined3d_settings
.
rendertargetlock_mode
==
RTL_DISABLE
)
{
static
BOOL
warned
=
FALSE
;
...
...
dlls/wined3d/swapchain.c
View file @
8292c687
...
...
@@ -732,7 +732,6 @@ HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface
}
surface_set_container
(
swapchain
->
front_buffer
,
WINED3D_CONTAINER_SWAPCHAIN
,
(
IWineD3DBase
*
)
swapchain
);
swapchain
->
front_buffer
->
Flags
|=
SFLAG_SWAPCHAIN
;
if
(
surface_type
==
SURFACE_OPENGL
)
{
surface_modify_location
(
swapchain
->
front_buffer
,
SFLAG_INDRAWABLE
,
TRUE
);
...
...
@@ -848,7 +847,6 @@ HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface
}
surface_set_container
(
swapchain
->
back_buffers
[
i
],
WINED3D_CONTAINER_SWAPCHAIN
,
(
IWineD3DBase
*
)
swapchain
);
swapchain
->
back_buffers
[
i
]
->
Flags
|=
SFLAG_SWAPCHAIN
;
}
}
...
...
dlls/wined3d/wined3d_private.h
View file @
8292c687
...
...
@@ -2185,7 +2185,6 @@ void flip_surface(IWineD3DSurfaceImpl *front, IWineD3DSurfaceImpl *back) DECLSPE
#define SFLAG_DS_ONSCREEN 0x00200000
/* Is a depth stencil, last modified onscreen */
#define SFLAG_DS_OFFSCREEN 0x00400000
/* Is a depth stencil, last modified offscreen */
#define SFLAG_INOVERLAYDRAW 0x00800000
/* Overlay drawing is in progress. Recursion prevention */
#define SFLAG_SWAPCHAIN 0x01000000
/* The surface is part of a swapchain */
/* In some conditions the surface memory must not be freed:
* SFLAG_CONVERTED: Converting the data back would take too long
...
...
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