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
a187ab05
Commit
a187ab05
authored
Mar 19, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't use OpenGL 2.0.
parent
c72f68ef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
device.c
dlls/wined3d/device.c
+16
-4
wined3d_gl.h
include/wine/wined3d_gl.h
+5
-1
No files found.
dlls/wined3d/device.c
View file @
a187ab05
...
...
@@ -3166,11 +3166,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
}
This
->
stencilfunc
=
func
;
if
(
!
This
->
stateBlock
->
renderState
[
WINED3DRS_TWOSIDEDSTENCILMODE
])
{
#if 0 /* Don't use OpenGL 2.0 calls for now */
if(GL_EXTCALL(glStencilFuncSeparate)) {
GL_EXTCALL(glStencilFuncSeparate(GL_FRONT, func, ref, mask));
checkGLcall("glStencilFuncSeparate(GL_FRONT,...)");
}
else
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
else
#endif
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
glEnable
(
GL_STENCIL_TEST_TWO_SIDE_EXT
);
checkGLcall
(
"glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT)"
);
GL_EXTCALL
(
glActiveStencilFaceEXT
(
GL_FRONT
));
...
...
@@ -3242,11 +3245,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
}
if
(
!
This
->
stateBlock
->
renderState
[
WINED3DRS_TWOSIDEDSTENCILMODE
])
{
#if 0 /* Don't use OpenGL 2.0 calls for now */
if(GL_EXTCALL(glStencilOpSeparate)) {
GL_EXTCALL(glStencilOpSeparate(GL_FRONT, stencilFail, depthFail, stencilPass));
checkGLcall("glStencilOpSeparate(GL_FRONT,...)");
}
else
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
else
#endif
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
glEnable
(
GL_STENCIL_TEST_TWO_SIDE_EXT
);
checkGLcall
(
"glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT)"
);
GL_EXTCALL
(
glActiveStencilFaceEXT
(
GL_FRONT
));
...
...
@@ -3789,11 +3795,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
}
if
(
!
This
->
stateBlock
->
renderState
[
WINED3DRS_TWOSIDEDSTENCILMODE
])
{
#if 0 /* Don't use OpenGL 2.0 calls for now */
if(GL_EXTCALL(glStencilOpSeparate)) {
GL_EXTCALL(glStencilOpSeparate(GL_BACK, stencilFail, depthFail, stencilPass));
checkGLcall("glStencilOpSeparate(GL_BACK,...)");
}
else
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
else
#endif
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
glEnable
(
GL_STENCIL_TEST_TWO_SIDE_EXT
);
checkGLcall
(
"glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT)"
);
GL_EXTCALL
(
glActiveStencilFaceEXT
(
GL_BACK
));
...
...
@@ -3836,11 +3845,14 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, D3DRENDE
}
This
->
stencilfunc
=
func
;
if
(
!
This
->
stateBlock
->
renderState
[
WINED3DRS_TWOSIDEDSTENCILMODE
])
{
#if 0 /* Don't use OpenGL 2.0 calls for now */
if(GL_EXTCALL(glStencilFuncSeparate)) {
GL_EXTCALL(glStencilFuncSeparate(GL_BACK, func, ref, mask));
checkGLcall("glStencilFuncSeparate(GL_BACK,...)");
}
else
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
else
#endif
if
(
GL_SUPPORT
(
EXT_STENCIL_TWO_SIDE
))
{
glEnable
(
GL_STENCIL_TEST_TWO_SIDE_EXT
);
checkGLcall
(
"glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT)"
);
GL_EXTCALL
(
glActiveStencilFaceEXT
(
GL_BACK
));
...
...
include/wine/wined3d_gl.h
View file @
a187ab05
...
...
@@ -1237,7 +1237,9 @@ typedef enum _GL_SupportedExt {
/* GL_ATI_separate_stencil */
\
USE_GL_FUNC(PGLFNSTENCILOPSEPARATEATIPROC, glStencilOpSeparateATI); \
USE_GL_FUNC(PGLFNSTENCILFUNCSEPARATEATIPROC, glStencilFuncSeparateATI); \
/* GL_VERSION_2_0 */
\
/* OpenGL 2.0 functions */
#define GL2_FUNCS_GEN \
USE_GL_FUNC(PGLFNBLENDEQUATIONSEPARATEPROC, glBlendEquationSeparate); \
USE_GL_FUNC(PGLFNDRAWBUFFERSPROC, glDrawBuffers); \
USE_GL_FUNC(PGLFNSTENCILOPSEPARATEPROC, glStencilOpSeparate); \
...
...
@@ -1388,6 +1390,8 @@ typedef struct _WineD3D_GL_Info {
GL_EXT_FUNCS_GEN
;
/** OpenGL GLX functions ptr */
GLX_EXT_FUNCS_GEN
;
/** OpenGL 2.0 functions ptr */
/* GL2_FUNCS_GEN; */
/**/
}
WineD3D_GL_Info
;
#undef USE_GL_FUNC
...
...
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