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
7c2e91c5
Commit
7c2e91c5
authored
May 25, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix debug_d3dusage() to handle combinations of flags.
parent
f3473744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
utils.c
dlls/wined3d/utils.c
+9
-8
No files found.
dlls/wined3d/utils.c
View file @
7c2e91c5
...
...
@@ -911,9 +911,12 @@ const char* debug_d3ddevicetype(WINED3DDEVTYPE devtype) {
}
}
const
char
*
debug_d3dusage
(
DWORD
usage
)
{
switch
(
usage
&
WINED3DUSAGE_MASK
)
{
#define WINED3DUSAGE_TO_STR(u) case u: return #u
const
char
*
debug_d3dusage
(
DWORD
usage
)
{
char
buf
[
284
];
buf
[
0
]
=
'\0'
;
#define WINED3DUSAGE_TO_STR(u) if (usage & u) { strcat(buf, " | "#u); usage &= ~u; }
WINED3DUSAGE_TO_STR
(
WINED3DUSAGE_RENDERTARGET
);
WINED3DUSAGE_TO_STR
(
WINED3DUSAGE_DEPTHSTENCIL
);
WINED3DUSAGE_TO_STR
(
WINED3DUSAGE_WRITEONLY
);
...
...
@@ -926,11 +929,9 @@ const char* debug_d3dusage(DWORD usage) {
WINED3DUSAGE_TO_STR
(
WINED3DUSAGE_AUTOGENMIPMAP
);
WINED3DUSAGE_TO_STR
(
WINED3DUSAGE_DMAP
);
#undef WINED3DUSAGE_TO_STR
case
0
:
return
"none"
;
default:
FIXME
(
"Unrecognized %u Usage!
\n
"
,
usage
);
return
"unrecognized"
;
}
if
(
usage
)
FIXME
(
"Unrecognized usage flag(s) %#x
\n
"
,
usage
);
return
buf
[
0
]
?
wine_dbg_sprintf
(
"%s"
,
&
buf
[
3
])
:
"0"
;
}
const
char
*
debug_d3dusagequery
(
DWORD
usagequery
)
{
...
...
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