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
fec6137d
Commit
fec6137d
authored
Jun 07, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Rename IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt to…
wined3d: Rename IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt to wined3d_check_pixel_format_depth().
parent
01e668b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
directx.c
dlls/wined3d/directx.c
+4
-6
No files found.
dlls/wined3d/directx.c
View file @
fec6137d
...
...
@@ -2968,7 +2968,7 @@ static BOOL IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt(const struct wined
return
FALSE
;
}
static
BOOL
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
const
struct
wined3d_gl_info
*
gl_info
,
static
BOOL
wined3d_check_pixel_format_depth
(
const
struct
wined3d_gl_info
*
gl_info
,
const
struct
wined3d_pixel_format
*
cfg
,
const
struct
wined3d_format
*
format
)
{
BYTE
depthSize
,
stencilSize
;
...
...
@@ -3043,7 +3043,7 @@ HRESULT CDECL wined3d_check_depth_stencil_match(const struct wined3d *wined3d,
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt
(
&
adapter
->
gl_info
,
&
cfgs
[
i
],
rt_format
))
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
&
adapter
->
gl_info
,
&
cfgs
[
i
],
ds_format
))
if
(
wined3d_check_pixel_format_depth
(
&
adapter
->
gl_info
,
&
cfgs
[
i
],
ds_format
))
{
TRACE_
(
d3d_caps
)(
"Formats match.
\n
"
);
return
WINED3D_OK
;
...
...
@@ -3104,7 +3104,7 @@ HRESULT CDECL wined3d_check_device_multisample_type(const struct wined3d *wined3
if
(
cfgs
[
i
].
numSamples
!=
multisample_type
)
continue
;
if
(
!
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
&
adapter
->
gl_info
,
&
cfgs
[
i
],
format
))
if
(
!
wined3d_check_pixel_format_depth
(
&
adapter
->
gl_info
,
&
cfgs
[
i
],
format
))
continue
;
TRACE
(
"Found pixel format %u to support multisample_type %#x for format %s.
\n
"
,
...
...
@@ -3190,10 +3190,8 @@ static BOOL CheckDepthStencilCapability(const struct wined3d_adapter *adapter,
const
struct
wined3d_pixel_format
*
cfg
=
&
adapter
->
cfgs
[
it
];
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt
(
&
adapter
->
gl_info
,
cfg
,
display_format
))
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
&
adapter
->
gl_info
,
cfg
,
ds_format
))
{
if
(
wined3d_check_pixel_format_depth
(
&
adapter
->
gl_info
,
cfg
,
ds_format
))
return
TRUE
;
}
}
}
}
...
...
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