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
331679bc
Commit
331679bc
authored
Oct 05, 2006
by
Christopher GAUTIER
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Disable GL_REGISTER_COMBINERS_NV (if supported) in IWineD3DSurfaceImpl_BltOverride.
parent
9024a88d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
surface.c
dlls/wined3d/surface.c
+13
-1
No files found.
dlls/wined3d/surface.c
View file @
331679bc
...
...
@@ -2333,9 +2333,9 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
DWORD
oldCKey
;
DDCOLORKEY
oldBltCKey
=
{
0
,
0
};
GLint
oldLight
,
oldFog
,
oldDepth
,
oldBlend
,
oldCull
,
oldAlpha
;
GLint
oldStencil
,
oldNVRegisterCombiners
=
0
;
GLint
alphafunc
;
GLclampf
alpharef
;
GLint
oldStencil
;
RECT
SourceRectangle
;
GLint
oldDraw
;
...
...
@@ -2397,6 +2397,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
oldAlpha
=
glIsEnabled
(
GL_ALPHA_TEST
);
oldStencil
=
glIsEnabled
(
GL_STENCIL_TEST
);
if
(
GL_SUPPORT
(
NV_REGISTER_COMBINERS
))
{
oldNVRegisterCombiners
=
glIsEnabled
(
GL_REGISTER_COMBINERS_NV
);
}
glGetIntegerv
(
GL_ALPHA_TEST_FUNC
,
&
alphafunc
);
checkGLcall
(
"glGetFloatv GL_ALPHA_TEST_FUNC"
);
glGetFloatv
(
GL_ALPHA_TEST_REF
,
&
alpharef
);
...
...
@@ -2433,6 +2437,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
checkGLcall
(
"glDisable GL_CULL_FACE"
);
glDisable
(
GL_STENCIL_TEST
);
checkGLcall
(
"glDisable GL_STENCIL_TEST"
);
if
(
GL_SUPPORT
(
NV_REGISTER_COMBINERS
))
{
glDisable
(
GL_REGISTER_COMBINERS_NV
);
checkGLcall
(
"glDisable GL_REGISTER_COMBINERS_NV"
);
}
/* Ok, we need 2d textures, but not 1D or 3D */
glDisable
(
GL_TEXTURE_1D
);
...
...
@@ -2536,6 +2544,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
glEnable
(
GL_ALPHA_TEST
);
checkGLcall
(
"glEnable GL_ALPHA_TEST"
);
}
if
(
GL_SUPPORT
(
NV_REGISTER_COMBINERS
)
&&
oldNVRegisterCombiners
)
{
glEnable
(
GL_REGISTER_COMBINERS_NV
);
checkGLcall
(
"glEnable GL_REGISTER_COMBINERS_NV"
);
}
glAlphaFunc
(
alphafunc
,
alpharef
);
checkGLcall
(
"glAlphaFunc
\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