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
caf9ad6c
Commit
caf9ad6c
authored
Nov 22, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Swap the container's texture name in flip_surface().
parent
2ab00026
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
surface.c
dlls/wined3d/surface.c
+12
-0
No files found.
dlls/wined3d/surface.c
View file @
caf9ad6c
...
...
@@ -3997,6 +3997,10 @@ static HRESULT d3dfmt_convert_surface(const BYTE *src, BYTE *dst, UINT pitch, UI
void
flip_surface
(
struct
wined3d_surface
*
front
,
struct
wined3d_surface
*
back
)
{
if
(
front
->
container
->
level_count
!=
1
||
front
->
container
->
layer_count
!=
1
||
back
->
container
->
level_count
!=
1
||
back
->
container
->
layer_count
!=
1
)
ERR
(
"Flip between surfaces %p and %p not supported.
\n
"
,
front
,
back
);
/* Flip the surface contents */
/* Flip the DC */
{
...
...
@@ -4041,6 +4045,14 @@ void flip_surface(struct wined3d_surface *front, struct wined3d_surface *back)
{
GLuint
tmp
;
tmp
=
back
->
container
->
texture_rgb
.
name
;
back
->
container
->
texture_rgb
.
name
=
front
->
container
->
texture_rgb
.
name
;
front
->
container
->
texture_rgb
.
name
=
tmp
;
tmp
=
back
->
container
->
texture_srgb
.
name
;
back
->
container
->
texture_srgb
.
name
=
front
->
container
->
texture_srgb
.
name
;
front
->
container
->
texture_srgb
.
name
=
tmp
;
tmp
=
back
->
rb_multisample
;
back
->
rb_multisample
=
front
->
rb_multisample
;
front
->
rb_multisample
=
tmp
;
...
...
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