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
937ceda4
Commit
937ceda4
authored
Oct 08, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove a redundant initialization of cfgs in CheckDepthStencilCapability (LLVM/Clang).
parent
e9daf92a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
directx.c
dlls/wined3d/directx.c
+3
-4
No files found.
dlls/wined3d/directx.c
View file @
937ceda4
...
...
@@ -2005,7 +2005,6 @@ static BOOL CheckBumpMapCapability(UINT Adapter, WINED3DDEVTYPE DeviceType, WINE
static
BOOL
CheckDepthStencilCapability
(
UINT
Adapter
,
WINED3DFORMAT
DisplayFormat
,
WINED3DFORMAT
DepthStencilFormat
)
{
int
it
=
0
;
WineD3D_PixelFormat
*
cfgs
=
Adapters
[
Adapter
].
cfgs
;
const
GlPixelFormatDesc
*
glDesc
;
const
StaticPixelFormatDesc
*
desc
=
getFormatDescEntry
(
DepthStencilFormat
,
&
GLINFO_LOCATION
,
&
glDesc
);
...
...
@@ -2018,10 +2017,10 @@ static BOOL CheckDepthStencilCapability(UINT Adapter, WINED3DFORMAT DisplayForma
return
FALSE
;
/* Walk through all WGL pixel formats to find a match */
cfgs
=
Adapters
[
Adapter
].
cfgs
;
for
(
it
=
0
;
it
<
Adapters
[
Adapter
].
nCfgs
;
++
it
)
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt
(
&
cfgs
[
it
],
DisplayFormat
))
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
&
cfgs
[
it
],
DepthStencilFormat
))
{
WineD3D_PixelFormat
*
cfg
=
&
Adapters
[
Adapter
].
cfgs
[
it
];
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt
(
cfg
,
DisplayFormat
))
{
if
(
IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt
(
cfg
,
DepthStencilFormat
))
{
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