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
ddc7a803
Commit
ddc7a803
authored
Mar 02, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Standalone surfaces should never be sRGB.
parent
fe425a2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
surface.c
dlls/wined3d/surface.c
+8
-7
No files found.
dlls/wined3d/surface.c
View file @
ddc7a803
...
...
@@ -707,24 +707,25 @@ void surface_bind(IWineD3DSurfaceImpl *surface, BOOL srgb)
}
else
{
GLuint
*
name
=
srgb
?
&
surface
->
texture_name_srgb
:
&
surface
->
texture_name
;
if
(
surface
->
texture_level
)
{
ERR
(
"Standalone surface %p is non-zero texture level %u.
\n
"
,
surface
,
surface
->
texture_level
);
}
if
(
srgb
)
ERR
(
"Trying to bind standalone surface %p as sRGB.
\n
"
,
surface
);
ENTER_GL
();
if
(
!
*
name
)
if
(
!
surface
->
texture_
name
)
{
glGenTextures
(
1
,
name
);
glGenTextures
(
1
,
&
surface
->
texture_
name
);
checkGLcall
(
"glGenTextures"
);
TRACE
(
"Surface %p given name %u.
\n
"
,
surface
,
*
name
);
TRACE
(
"Surface %p given name %u.
\n
"
,
surface
,
surface
->
texture_
name
);
glBindTexture
(
surface
->
texture_target
,
*
name
);
glBindTexture
(
surface
->
texture_target
,
surface
->
texture_
name
);
checkGLcall
(
"glBindTexture"
);
glTexParameteri
(
surface
->
texture_target
,
GL_TEXTURE_WRAP_S
,
GL_CLAMP_TO_EDGE
);
glTexParameteri
(
surface
->
texture_target
,
GL_TEXTURE_WRAP_T
,
GL_CLAMP_TO_EDGE
);
...
...
@@ -735,7 +736,7 @@ void surface_bind(IWineD3DSurfaceImpl *surface, BOOL srgb)
}
else
{
glBindTexture
(
surface
->
texture_target
,
*
name
);
glBindTexture
(
surface
->
texture_target
,
surface
->
texture_
name
);
checkGLcall
(
"glBindTexture"
);
}
...
...
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