Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1bd6710b
Commit
1bd6710b
authored
Aug 26, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check volume formats and sizes in device_update_volume.
parent
9fbc90b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
device.c
dlls/wined3d/device.c
+13
-0
No files found.
dlls/wined3d/device.c
View file @
1bd6710b
...
...
@@ -4096,6 +4096,19 @@ static HRESULT device_update_volume(struct wined3d_device *device,
TRACE
(
"device %p, src_volume %p, dst_volume %p.
\n
"
,
device
,
src_volume
,
dst_volume
);
if
(
src_volume
->
resource
.
format
!=
dst_volume
->
resource
.
format
)
{
FIXME
(
"Source and destination formats do not match.
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
if
(
src_volume
->
resource
.
width
!=
dst_volume
->
resource
.
width
||
src_volume
->
resource
.
height
!=
dst_volume
->
resource
.
height
||
src_volume
->
resource
.
depth
!=
dst_volume
->
resource
.
depth
)
{
FIXME
(
"Source and destination sizes do not match.
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
if
(
FAILED
(
hr
=
wined3d_volume_map
(
src_volume
,
&
src
,
NULL
,
WINED3D_MAP_READONLY
)))
return
hr
;
...
...
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