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
6a9212a1
Commit
6a9212a1
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_d3dusagequery() to handle combinations of flags.
parent
7c2e91c5
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 @
6a9212a1
...
...
@@ -934,9 +934,12 @@ const char *debug_d3dusage(DWORD usage)
return
buf
[
0
]
?
wine_dbg_sprintf
(
"%s"
,
&
buf
[
3
])
:
"0"
;
}
const
char
*
debug_d3dusagequery
(
DWORD
usagequery
)
{
switch
(
usagequery
&
WINED3DUSAGE_QUERY_MASK
)
{
#define WINED3DUSAGEQUERY_TO_STR(u) case u: return #u
const
char
*
debug_d3dusagequery
(
DWORD
usagequery
)
{
char
buf
[
238
];
buf
[
0
]
=
'\0'
;
#define WINED3DUSAGEQUERY_TO_STR(u) if (usagequery & u) { strcat(buf, " | "#u); usagequery &= ~u; }
WINED3DUSAGEQUERY_TO_STR
(
WINED3DUSAGE_QUERY_FILTER
);
WINED3DUSAGEQUERY_TO_STR
(
WINED3DUSAGE_QUERY_LEGACYBUMPMAP
);
WINED3DUSAGEQUERY_TO_STR
(
WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
);
...
...
@@ -945,11 +948,9 @@ const char* debug_d3dusagequery(DWORD usagequery) {
WINED3DUSAGEQUERY_TO_STR
(
WINED3DUSAGE_QUERY_VERTEXTEXTURE
);
WINED3DUSAGEQUERY_TO_STR
(
WINED3DUSAGE_QUERY_WRAPANDMIP
);
#undef WINED3DUSAGEQUERY_TO_STR
case
0
:
return
"none"
;
default:
FIXME
(
"Unrecognized %u Usage Query!
\n
"
,
usagequery
);
return
"unrecognized"
;
}
if
(
usagequery
)
FIXME
(
"Unrecognized usage query flag(s) %#x
\n
"
,
usagequery
);
return
buf
[
0
]
?
wine_dbg_sprintf
(
"%s"
,
&
buf
[
3
])
:
"0"
;
}
const
char
*
debug_d3ddeclmethod
(
WINED3DDECLMETHOD
method
)
{
...
...
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