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
aee692d2
Commit
aee692d2
authored
Oct 16, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Simplify d3d8_device_GetBackBuffer().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a59e3e0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
device.c
dlls/d3d8/device.c
+3
-8
No files found.
dlls/d3d8/device.c
View file @
aee692d2
...
...
@@ -722,7 +722,7 @@ static HRESULT WINAPI d3d8_device_GetBackBuffer(IDirect3DDevice8 *iface,
UINT
backbuffer_idx
,
D3DBACKBUFFER_TYPE
backbuffer_type
,
IDirect3DSurface8
**
backbuffer
)
{
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
struct
wined3d_swapchain
*
swapchain
;
struct
wined3d_swapchain
*
wined3d_
swapchain
;
struct
wined3d_resource
*
wined3d_resource
;
struct
wined3d_texture
*
wined3d_texture
;
struct
d3d8_surface
*
surface_impl
;
...
...
@@ -734,14 +734,9 @@ static HRESULT WINAPI d3d8_device_GetBackBuffer(IDirect3DDevice8 *iface,
/* No need to check for backbuffer == NULL, Windows crashes in that case. */
wined3d_mutex_lock
();
if
(
!
(
swapchain
=
wined3d_device_get_swapchain
(
device
->
wined3d_device
,
0
)))
{
wined3d_mutex_unlock
();
*
backbuffer
=
NULL
;
return
D3DERR_INVALIDCALL
;
}
if
(
!
(
wined3d_texture
=
wined3d_swapchain_get_back_buffer
(
swapchain
,
backbuffer_idx
)))
wined3d_swapchain
=
device
->
implicit_swapchain
->
wined3d_swapchain
;
if
(
!
(
wined3d_texture
=
wined3d_swapchain_get_back_buffer
(
wined3d_swapchain
,
backbuffer_idx
)))
{
wined3d_mutex_unlock
();
*
backbuffer
=
NULL
;
...
...
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