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
82a52308
Commit
82a52308
authored
Jul 18, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove unreachable code: break after return. Found by Smatch.
parent
c03736f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
utils.c
dlls/wined3d/utils.c
+5
-6
No files found.
dlls/wined3d/utils.c
View file @
82a52308
...
...
@@ -615,7 +615,6 @@ const char* debug_d3dtexturestate(DWORD state) {
case
12
:
/* Note WINED3DTSS are not consecutive, so skip these */
return
"unused"
;
break
;
default:
FIXME
(
"Unrecognized %u texture state!
\n
"
,
state
);
return
"unrecognized"
;
...
...
@@ -2518,11 +2517,11 @@ int D3DFmtMakeGlCfg(WINED3DFORMAT BackBufferFormat, WINED3DFORMAT StencilBufferF
/* DirectDraw stuff */
WINED3DFORMAT
pixelformat_for_depth
(
DWORD
depth
)
{
switch
(
depth
)
{
case
8
:
return
WINED3DFMT_P8
;
break
;
case
15
:
return
WINED3DFMT_X1R5G5B5
;
break
;
case
16
:
return
WINED3DFMT_R5G6B5
;
break
;
case
24
:
return
WINED3DFMT_R8G8B8
;
break
;
case
32
:
return
WINED3DFMT_X8R8G8B8
;
break
;
case
8
:
return
WINED3DFMT_P8
;
case
15
:
return
WINED3DFMT_X1R5G5B5
;
case
16
:
return
WINED3DFMT_R5G6B5
;
case
24
:
return
WINED3DFMT_R8G8B8
;
case
32
:
return
WINED3DFMT_X8R8G8B8
;
default
:
return
WINED3DFMT_UNKNOWN
;
}
}
...
...
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