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
c33e6245
Commit
c33e6245
authored
Sep 01, 2006
by
András Kovács
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove unnecessary glBlendColor in TextureFactor renderstate.
parent
063f3e9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
device.c
dlls/wined3d/device.c
+0
-19
No files found.
dlls/wined3d/device.c
View file @
c33e6245
...
...
@@ -494,18 +494,6 @@ static void WINAPI IWineD3DDeviceImpl_SetupTextureStates(IWineD3DDevice *iface,
checkGLcall
(
"glTexEnvi GL_TEXTURE_LOD_BIAS_EXT ..."
);
}
/* Note the D3DRS value applies to all textures, but GL has one
* per texture, so apply it now ready to be used!
*/
D3DCOLORTOGLFLOAT4
(
This
->
stateBlock
->
renderState
[
WINED3DRS_TEXTUREFACTOR
],
col
);
/* Set the default alpha blend color */
if
(
GL_SUPPORT
(
ARB_IMAGING
))
{
GL_EXTCALL
(
glBlendColor
(
col
[
0
],
col
[
1
],
col
[
2
],
col
[
3
]));
checkGLcall
(
"glBlendColor"
);
}
else
{
WARN
(
"Unsupported in local OpenGL implementation: glBlendColor
\n
"
);
}
D3DCOLORTOGLFLOAT4
(
This
->
stateBlock
->
renderState
[
WINED3DRS_TEXTUREFACTOR
],
col
);
glTexEnvfv
(
GL_TEXTURE_ENV
,
GL_TEXTURE_ENV_COLOR
,
&
col
[
0
]);
checkGLcall
(
"glTexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, color);"
);
...
...
@@ -3756,13 +3744,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D
GL_TEXTURE_ENV_COLOR applies to active only */
float
col
[
4
];
D3DCOLORTOGLFLOAT4
(
Value
,
col
);
/* Set the default alpha blend color */
if
(
GL_SUPPORT
(
ARB_IMAGING
))
{
GL_EXTCALL
(
glBlendColor
(
col
[
0
],
col
[
1
],
col
[
2
],
col
[
3
]));
checkGLcall
(
"glBlendColor"
);
}
else
{
WARN
(
"Unsupported in local OpenGL implementation: glBlendColor
\n
"
);
}
if
(
!
GL_SUPPORT
(
NV_REGISTER_COMBINERS
))
{
/* And now the default texture color as well */
...
...
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