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
15e46669
Commit
15e46669
authored
Jan 31, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the resource access flags in surface_blt_special().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51b9a9bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
surface.c
dlls/wined3d/surface.c
+5
-5
No files found.
dlls/wined3d/surface.c
View file @
15e46669
...
...
@@ -1990,10 +1990,10 @@ static HRESULT surface_blt_special(struct wined3d_surface *dst_surface, const RE
dst_surface
,
wine_dbgstr_rect
(
dst_rect
),
src_surface
,
wine_dbgstr_rect
(
src_rect
),
flags
,
fx
,
debug_d3dtexturefiltertype
(
filter
));
/* Get the swapchain. One of the surfaces has to be a primary surface */
if
(
dst_texture
->
resource
.
pool
==
WINED3D_POOL_SYSTEM_MEM
)
/* Get the swapchain. One of the surfaces has to be a primary surface
.
*/
if
(
!
(
dst_texture
->
resource
.
access
&
WINED3D_RESOURCE_ACCESS_GPU
)
)
{
WARN
(
"Destination
is in sysmem, rejecting gl blt
\n
"
);
WARN
(
"Destination
resource is not GPU accessible, rejecting GL blit.
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
@@ -2002,9 +2002,9 @@ static HRESULT surface_blt_special(struct wined3d_surface *dst_surface, const RE
if
(
src_surface
)
{
src_texture
=
src_surface
->
container
;
if
(
src_texture
->
resource
.
pool
==
WINED3D_POOL_SYSTEM_MEM
)
if
(
!
(
src_texture
->
resource
.
access
&
WINED3D_RESOURCE_ACCESS_GPU
)
)
{
WARN
(
"S
rc is in sysmem, rejecting gl blt
\n
"
);
WARN
(
"S
ource resource is not GPU accessible, rejecting GL blit.
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
...
...
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