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
1b26c278
Commit
1b26c278
authored
Mar 26, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify wined3d_device_update_sub_resource() a little.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ea4445c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
device.c
dlls/wined3d/device.c
+1
-6
No files found.
dlls/wined3d/device.c
View file @
1b26c278
...
@@ -4248,7 +4248,7 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
...
@@ -4248,7 +4248,7 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
height
=
1
;
height
=
1
;
depth
=
1
;
depth
=
1
;
}
}
else
if
(
resource
->
type
==
WINED3D_RTYPE_TEXTURE_2D
||
resource
->
type
==
WINED3D_RTYPE_TEXTURE_3D
)
else
{
{
struct
wined3d_texture
*
texture
=
texture_from_resource
(
resource
);
struct
wined3d_texture
*
texture
=
texture_from_resource
(
resource
);
unsigned
int
level
;
unsigned
int
level
;
...
@@ -4264,11 +4264,6 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
...
@@ -4264,11 +4264,6 @@ void CDECL wined3d_device_update_sub_resource(struct wined3d_device *device, str
height
=
wined3d_texture_get_level_height
(
texture
,
level
);
height
=
wined3d_texture_get_level_height
(
texture
,
level
);
depth
=
wined3d_texture_get_level_depth
(
texture
,
level
);
depth
=
wined3d_texture_get_level_depth
(
texture
,
level
);
}
}
else
{
FIXME
(
"Not implemented for %s resources.
\n
"
,
debug_d3dresourcetype
(
resource
->
type
));
return
;
}
if
(
!
box
)
if
(
!
box
)
{
{
...
...
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