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
9a9a14d4
Commit
9a9a14d4
authored
Jul 17, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Disable the fog before writing the back buffer data.
parent
739d565c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
surface.c
dlls/wined3d/surface.c
+2
-0
No files found.
dlls/wined3d/surface.c
View file @
9a9a14d4
...
...
@@ -1091,6 +1091,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
that helps performance */
glDisable
(
GL_BLEND
);
glDisable
(
GL_DEPTH_TEST
);
glDisable
(
GL_FOG
);
switch
(
wined3d_settings
.
rendertargetlock_mode
)
{
case
RTL_AUTO
:
...
...
@@ -1122,6 +1123,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
if
(
myDevice
->
stateBlock
->
renderState
[
D3DRS_ZENABLE
]
==
D3DZB_TRUE
||
myDevice
->
stateBlock
->
renderState
[
D3DRS_ZENABLE
]
==
D3DZB_USEW
)
glEnable
(
GL_DEPTH_TEST
);
if
(
myDevice
->
stateBlock
->
renderState
[
D3DRS_ALPHABLENDENABLE
])
glEnable
(
GL_BLEND
);
if
(
myDevice
->
stateBlock
->
renderState
[
D3DRS_FOGENABLE
])
glEnable
(
GL_FOG
);
LEAVE_GL
();
...
...
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