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
f020251d
Commit
f020251d
authored
Nov 19, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Surfaces always have a container in fb_copy_to_texture_direct().
parent
2d262b3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
surface.c
dlls/wined3d/surface.c
+1
-7
No files found.
dlls/wined3d/surface.c
View file @
f020251d
...
...
@@ -4289,12 +4289,6 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
struct
wined3d_context
*
context
;
BOOL
upsidedown
=
FALSE
;
RECT
dst_rect
=
*
dst_rect_in
;
GLenum
dst_target
;
if
(
dst_surface
->
container
)
dst_target
=
dst_surface
->
container
->
target
;
else
dst_target
=
dst_surface
->
texture_target
;
/* Make sure that the top pixel is always above the bottom pixel, and keep a separate upside down flag
* glCopyTexSubImage is a bit picky about the parameters we pass to it
...
...
@@ -4312,7 +4306,7 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
surface_internal_preload
(
dst_surface
,
context
,
SRGB_RGB
);
/* Bind the target texture */
context_bind_texture
(
context
,
dst_target
,
dst_surface
->
texture_name
);
context_bind_texture
(
context
,
dst_
surface
->
container
->
target
,
dst_surface
->
texture_name
);
if
(
surface_is_offscreen
(
src_surface
))
{
TRACE
(
"Reading from an offscreen target
\n
"
);
...
...
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