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
7859509f
Commit
7859509f
authored
Sep 06, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the SFLAG_INTEXTURE / SFLAG_INSRGBTEX check in surface_set_texture_name().
parent
137590be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
26 deletions
+5
-26
surface.c
dlls/wined3d/surface.c
+5
-26
No files found.
dlls/wined3d/surface.c
View file @
7859509f
...
...
@@ -1709,36 +1709,15 @@ static const struct wined3d_surface_ops gdi_surface_ops =
gdi_surface_unmap
,
};
void
surface_set_texture_name
(
struct
wined3d_surface
*
surface
,
GLuint
n
ew_n
ame
,
BOOL
srgb
)
void
surface_set_texture_name
(
struct
wined3d_surface
*
surface
,
GLuint
name
,
BOOL
srgb
)
{
GLuint
*
name
;
DWORD
flag
;
TRACE
(
"surface %p, name %u, srgb %#x.
\n
"
,
surface
,
name
,
srgb
);
TRACE
(
"surface %p, new_name %u, srgb %#x.
\n
"
,
surface
,
new_name
,
srgb
);
if
(
srgb
)
{
name
=
&
surface
->
texture_name_srgb
;
flag
=
SFLAG_INSRGBTEX
;
}
if
(
srgb
)
surface
->
texture_name_srgb
=
name
;
else
{
name
=
&
surface
->
texture_name
;
flag
=
SFLAG_INTEXTURE
;
}
if
(
!*
name
&&
new_name
)
{
/* FIXME: We shouldn't need to remove SFLAG_INTEXTURE if the
* surface has no texture name yet. See if we can get rid of this. */
if
(
surface
->
flags
&
flag
)
{
ERR
(
"Surface has %s set, but no texture name.
\n
"
,
debug_surflocation
(
flag
));
surface_modify_location
(
surface
,
flag
,
FALSE
);
}
}
surface
->
texture_name
=
name
;
*
name
=
new_name
;
surface_force_reload
(
surface
);
}
...
...
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