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
41310080
Commit
41310080
authored
Mar 21, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Use a correct resource type and a valid format.
parent
51a81623
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
direct3d.c
dlls/ddraw/direct3d.c
+8
-2
No files found.
dlls/ddraw/direct3d.c
View file @
41310080
...
...
@@ -1131,6 +1131,7 @@ IDirect3DImpl_7_EnumZBufferFormats(IDirect3D7 *iface,
ICOM_THIS_FROM
(
IDirectDrawImpl
,
IDirect3D7
,
iface
);
HRESULT
hr
;
int
i
;
WINED3DDISPLAYMODE
d3ddm
;
/* Order matters. Specifically, BattleZone II (full version) expects the
* 16-bit depth formats to be listed before the 24 and 32 ones. */
...
...
@@ -1145,6 +1146,11 @@ IDirect3DImpl_7_EnumZBufferFormats(IDirect3D7 *iface,
TRACE
(
"(%p)->(%s,%p,%p): Relay
\n
"
,
iface
,
debugstr_guid
(
refiidDevice
),
Callback
,
Context
);
if
(
IWineD3D_GetAdapterDisplayMode
(
This
->
wineD3D
,
WINED3DADAPTER_DEFAULT
,
&
d3ddm
)
!=
WINED3D_OK
)
{
ERR
(
"Unable to retrieve a default display mode for quering the z-buffer formats!
\n
"
);
return
DDERR_INVALIDPARAMS
;
}
if
(
!
Callback
)
return
DDERR_INVALIDPARAMS
;
...
...
@@ -1154,9 +1160,9 @@ IDirect3DImpl_7_EnumZBufferFormats(IDirect3D7 *iface,
hr
=
IWineD3D_CheckDeviceFormat
(
This
->
wineD3D
,
0
/* Adapter */
,
0
/* DeviceType */
,
0
/* AdapterFormat */
,
d3ddm
.
Format
/* AdapterFormat */
,
WINED3DUSAGE_DEPTHSTENCIL
/* Usage */
,
0
/* ResourceType */
,
WINED3DRTYPE_SURFACE
/* ResourceType */
,
FormatList
[
i
]);
if
(
hr
==
D3D_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