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
eaa1ff0d
Commit
eaa1ff0d
authored
Mar 25, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Always report D16 as Windows drivers report it on all cards (likely using emulation).
parent
3d707dc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
directx.c
dlls/wined3d/directx.c
+8
-1
No files found.
dlls/wined3d/directx.c
View file @
eaa1ff0d
...
@@ -1656,6 +1656,7 @@ static BOOL IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt(const WineD3D_Pixe
...
@@ -1656,6 +1656,7 @@ static BOOL IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt(const WineD3D_Pixe
static
BOOL
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
const
WineD3D_PixelFormat
*
cfg
,
WINED3DFORMAT
Format
)
{
static
BOOL
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
const
WineD3D_PixelFormat
*
cfg
,
WINED3DFORMAT
Format
)
{
short
depthSize
,
stencilSize
;
short
depthSize
,
stencilSize
;
BOOL
lockable
=
FALSE
;
if
(
!
cfg
)
if
(
!
cfg
)
return
FALSE
;
return
FALSE
;
...
@@ -1665,7 +1666,13 @@ static BOOL IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt(const WineD3D_Pixel
...
@@ -1665,7 +1666,13 @@ static BOOL IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt(const WineD3D_Pixel
return
FALSE
;
return
FALSE
;
}
}
if
(
cfg
->
depthSize
!=
depthSize
)
if
((
Format
==
WINED3DFMT_D16_LOCKABLE
)
||
(
Format
==
WINED3DFMT_D32F_LOCKABLE
))
lockable
=
TRUE
;
/* On some modern cards like the Geforce8/9 GLX doesn't offer some dephthstencil formats which D3D9 reports.
* We can safely report 'compatible' formats (e.g. D24 can be used for D16) as long as we aren't dealing with
* a lockable format. This also helps D3D <= 7 as they expect D16 which isn't offered without this on Geforce8 cards. */
if
(
!
(
cfg
->
depthSize
==
depthSize
||
(
!
lockable
&&
cfg
->
depthSize
>
depthSize
)))
return
FALSE
;
return
FALSE
;
if
(
cfg
->
stencilSize
!=
stencilSize
)
if
(
cfg
->
stencilSize
!=
stencilSize
)
...
...
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