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
8f1cf93b
Commit
8f1cf93b
authored
Feb 02, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify wined3d_rendertarget_view_create_from_sub_resource().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44f2589e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
view.c
dlls/wined3d/view.c
+6
-11
No files found.
dlls/wined3d/view.c
View file @
8f1cf93b
...
...
@@ -164,22 +164,17 @@ HRESULT CDECL wined3d_rendertarget_view_create_from_sub_resource(struct wined3d_
unsigned
int
sub_resource_idx
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
struct
wined3d_rendertarget_view
**
view
)
{
struct
wined3d_re
source
*
sub_resource
;
struct
wined3d_re
ndertarget_view_desc
desc
;
TRACE
(
"texture %p, sub_resource_idx %u, parent %p, parent_ops %p, view %p.
\n
"
,
texture
,
sub_resource_idx
,
parent
,
parent_ops
,
view
);
if
(
!
(
sub_resource
=
wined3d_texture_get_sub_resource
(
texture
,
sub_resource_idx
)))
return
WINED3DERR_INVALIDCALL
;
if
(
sub_resource
->
type
!=
WINED3D_RTYPE_SURFACE
)
{
FIXME
(
"Not implemented for %s resources.
\n
"
,
debug_d3dresourcetype
(
texture
->
resource
.
type
));
return
WINED3DERR_INVALIDCALL
;
}
desc
.
format_id
=
texture
->
resource
.
format
->
id
;
desc
.
u
.
texture
.
level_idx
=
sub_resource_idx
%
texture
->
level_count
;
desc
.
u
.
texture
.
layer_idx
=
sub_resource_idx
/
texture
->
level_count
;
desc
.
u
.
texture
.
layer_count
=
1
;
return
wined3d_rendertarget_view_create_from_surface
(
surface_from_resource
(
sub_resource
),
parent
,
parent_ops
,
view
);
return
wined3d_rendertarget_view_create
(
&
desc
,
&
texture
->
resource
,
parent
,
parent_ops
,
view
);
}
ULONG
CDECL
wined3d_shader_resource_view_incref
(
struct
wined3d_shader_resource_view
*
view
)
...
...
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