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
69f8b318
Commit
69f8b318
authored
Mar 19, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get resource info from the texture in fb_copy_to_texture_direct().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
119c17e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
surface.c
dlls/wined3d/surface.c
+6
-4
No files found.
dlls/wined3d/surface.c
View file @
69f8b318
...
...
@@ -2210,7 +2210,9 @@ static void surface_prepare_rb(struct wined3d_surface *surface, const struct win
static
void
fb_copy_to_texture_direct
(
struct
wined3d_surface
*
dst_surface
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect_in
,
enum
wined3d_texture_filter_type
filter
)
{
struct
wined3d_device
*
device
=
dst_surface
->
resource
.
device
;
struct
wined3d_texture
*
src_texture
=
src_surface
->
container
;
struct
wined3d_texture
*
dst_texture
=
dst_surface
->
container
;
struct
wined3d_device
*
device
=
dst_texture
->
resource
.
device
;
const
struct
wined3d_gl_info
*
gl_info
;
float
xrel
,
yrel
;
struct
wined3d_context
*
context
;
...
...
@@ -2230,11 +2232,11 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
context
=
context_acquire
(
device
,
src_surface
);
gl_info
=
context
->
gl_info
;
context_apply_blit_state
(
context
,
device
);
wined3d_texture_load
(
dst_
surface
->
container
,
context
,
FALSE
);
wined3d_texture_load
(
dst_
texture
,
context
,
FALSE
);
/* Bind the target texture */
context_bind_texture
(
context
,
dst_
surface
->
container
->
target
,
dst_surface
->
container
->
texture_rgb
.
name
);
if
(
wined3d_resource_is_offscreen
(
&
src_
surface
->
container
->
resource
))
context_bind_texture
(
context
,
dst_
texture
->
target
,
dst_texture
->
texture_rgb
.
name
);
if
(
wined3d_resource_is_offscreen
(
&
src_
texture
->
resource
))
{
TRACE
(
"Reading from an offscreen target
\n
"
);
upsidedown
=
!
upsidedown
;
...
...
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