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
d5ee9a40
Commit
d5ee9a40
authored
May 24, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
May 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check for unhandled resource usage flags.
parent
6d310390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
resource.c
dlls/wined3d/resource.c
+15
-0
No files found.
dlls/wined3d/resource.c
View file @
d5ee9a40
...
@@ -65,6 +65,19 @@ static DWORD resource_access_from_pool(WINED3DPOOL pool)
...
@@ -65,6 +65,19 @@ static DWORD resource_access_from_pool(WINED3DPOOL pool)
}
}
}
}
static
void
resource_check_usage
(
DWORD
usage
)
{
static
const
DWORD
handled
=
WINED3DUSAGE_RENDERTARGET
|
WINED3DUSAGE_DEPTHSTENCIL
|
WINED3DUSAGE_DYNAMIC
|
WINED3DUSAGE_AUTOGENMIPMAP
|
WINED3DUSAGE_STATICDECL
|
WINED3DUSAGE_OVERLAY
;
if
(
usage
&
~
handled
)
FIXME
(
"Unhandled usage flags %#x.
\n
"
,
usage
&
~
handled
);
}
HRESULT
resource_init
(
struct
wined3d_resource
*
resource
,
struct
wined3d_device
*
device
,
HRESULT
resource_init
(
struct
wined3d_resource
*
resource
,
struct
wined3d_device
*
device
,
WINED3DRESOURCETYPE
resource_type
,
const
struct
wined3d_format
*
format
,
WINED3DRESOURCETYPE
resource_type
,
const
struct
wined3d_format
*
format
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
UINT
multisample_quality
,
WINED3DMULTISAMPLE_TYPE
multisample_type
,
UINT
multisample_quality
,
...
@@ -93,6 +106,8 @@ HRESULT resource_init(struct wined3d_resource *resource, struct wined3d_device *
...
@@ -93,6 +106,8 @@ HRESULT resource_init(struct wined3d_resource *resource, struct wined3d_device *
resource
->
resource_ops
=
resource_ops
;
resource
->
resource_ops
=
resource_ops
;
list_init
(
&
resource
->
privateData
);
list_init
(
&
resource
->
privateData
);
resource_check_usage
(
usage
);
if
(
size
)
if
(
size
)
{
{
resource
->
heapMemory
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
+
RESOURCE_ALIGNMENT
);
resource
->
heapMemory
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
size
+
RESOURCE_ALIGNMENT
);
...
...
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