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
9083addc
Commit
9083addc
authored
Mar 06, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get resource info from the rendertarget view in draw_primitive().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d8a1034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
drawprim.c
dlls/wined3d/drawprim.c
+7
-5
No files found.
dlls/wined3d/drawprim.c
View file @
9083addc
...
...
@@ -622,17 +622,19 @@ void draw_primitive(struct wined3d_device *device, UINT start_idx, UINT index_co
for
(
i
=
0
;
i
<
device
->
adapter
->
gl_info
.
limits
.
buffers
;
++
i
)
{
struct
wined3d_surface
*
target
=
wined3d_rendertarget_view_get_surface
(
device
->
fb
.
render_targets
[
i
]);
if
(
target
&&
target
->
resource
.
format
->
id
!=
WINED3DFMT_NULL
)
struct
wined3d_rendertarget_view
*
rtv
=
device
->
fb
.
render_targets
[
i
];
struct
wined3d_surface
*
target
=
wined3d_rendertarget_view_get_surface
(
rtv
);
if
(
target
&&
rtv
->
format
->
id
!=
WINED3DFMT_NULL
)
{
if
(
state
->
render_states
[
WINED3D_RS_COLORWRITEENABLE
])
{
surface_load_location
(
target
,
context
,
target
->
container
->
resource
.
draw_binding
);
surface_invalidate_location
(
target
,
~
target
->
container
->
resource
.
draw_binding
);
surface_load_location
(
target
,
context
,
rtv
->
resource
->
draw_binding
);
surface_invalidate_location
(
target
,
~
rtv
->
resource
->
draw_binding
);
}
else
{
wined3d_surface_prepare
(
target
,
context
,
target
->
container
->
resource
.
draw_binding
);
wined3d_surface_prepare
(
target
,
context
,
rtv
->
resource
->
draw_binding
);
}
}
}
...
...
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