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
092ba1e1
Commit
092ba1e1
authored
Jul 17, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the proper texture target in fb_copy_to_texture_direct().
parent
f5e289c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
surface.c
dlls/wined3d/surface.c
+7
-1
No files found.
dlls/wined3d/surface.c
View file @
092ba1e1
...
...
@@ -4888,6 +4888,12 @@ 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
.
type
==
WINED3D_CONTAINER_TEXTURE
)
dst_target
=
dst_surface
->
container
.
u
.
texture
->
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
...
...
@@ -4905,7 +4911,7 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
ENTER_GL
();
/* Bind the target texture */
context_bind_texture
(
context
,
dst_
surface
->
texture_
target
,
dst_surface
->
texture_name
);
context_bind_texture
(
context
,
dst_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