Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
45b531fc
Commit
45b531fc
authored
Jun 05, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make sure the color buffer is not modified by depth_blt().
parent
06b64a1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drawprim.c
dlls/wined3d/drawprim.c
+3
-2
No files found.
dlls/wined3d/drawprim.c
View file @
45b531fc
...
@@ -760,15 +760,16 @@ static void depth_blt(IWineD3DDevice *iface, GLuint texture) {
...
@@ -760,15 +760,16 @@ static void depth_blt(IWineD3DDevice *iface, GLuint texture) {
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
GLint
old_binding
=
0
;
GLint
old_binding
=
0
;
glPushAttrib
(
GL_ENABLE_BIT
|
GL_DEPTH_BUFFER_BIT
);
glPushAttrib
(
GL_ENABLE_BIT
|
GL_DEPTH_BUFFER_BIT
|
GL_COLOR_BUFFER_BIT
);
glDisable
(
GL_CULL_FACE
);
glDisable
(
GL_CULL_FACE
);
gl
Dis
able
(
GL_BLEND
);
gl
En
able
(
GL_BLEND
);
glDisable
(
GL_ALPHA_TEST
);
glDisable
(
GL_ALPHA_TEST
);
glDisable
(
GL_SCISSOR_TEST
);
glDisable
(
GL_SCISSOR_TEST
);
glDisable
(
GL_STENCIL_TEST
);
glDisable
(
GL_STENCIL_TEST
);
glEnable
(
GL_DEPTH_TEST
);
glEnable
(
GL_DEPTH_TEST
);
glDepthFunc
(
GL_ALWAYS
);
glDepthFunc
(
GL_ALWAYS
);
glBlendFunc
(
GL_ZERO
,
GL_ONE
);
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
));
GL_EXTCALL
(
glActiveTextureARB
(
GL_TEXTURE0_ARB
));
glGetIntegerv
(
GL_TEXTURE_BINDING_2D
,
&
old_binding
);
glGetIntegerv
(
GL_TEXTURE_BINDING_2D
,
&
old_binding
);
...
...
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