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
6f24b198
Commit
6f24b198
authored
Jun 12, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass the D3DCB_CreateAdditionalSwapChain() error code to the upper…
wined3d: Pass the D3DCB_CreateAdditionalSwapChain() error code to the upper layers (needed for d3d9).
parent
00c8dbe2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
device.c
dlls/wined3d/device.c
+4
-2
No files found.
dlls/wined3d/device.c
View file @
6f24b198
...
...
@@ -1803,6 +1803,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreatePalette(IWineD3DDevice *iface, DW
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Init3D
(
IWineD3DDevice
*
iface
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
D3DCB_CREATEADDITIONALSWAPCHAIN
D3DCB_CreateAdditionalSwapChain
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DSwapChainImpl
*
swapchain
;
HRESULT
hr
;
DWORD
state
;
TRACE
(
"(%p)->(%p,%p)
\n
"
,
This
,
pPresentationParameters
,
D3DCB_CreateAdditionalSwapChain
);
...
...
@@ -1818,9 +1819,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
/* Setup the implicit swapchain */
TRACE
(
"Creating implicit swapchain
\n
"
);
if
(
FAILED
(
D3DCB_CreateAdditionalSwapChain
((
IUnknown
*
)
This
->
parent
,
pPresentationParameters
,
(
IWineD3DSwapChain
**
)
&
swapchain
))
||
!
swapchain
)
{
hr
=
D3DCB_CreateAdditionalSwapChain
((
IUnknown
*
)
This
->
parent
,
pPresentationParameters
,
(
IWineD3DSwapChain
**
)
&
swapchain
);
if
(
FAILED
(
hr
)
||
!
swapchain
)
{
WARN
(
"Failed to create implicit swapchain
\n
"
);
return
WINED3DERR_INVALIDCALL
;
return
hr
;
}
This
->
NumberOfSwapChains
=
1
;
...
...
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