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
0ce3cb23
Commit
0ce3cb23
authored
May 26, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Disable the depth test in UnlockRect
parent
c60f296b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
surface.c
dlls/wined3d/surface.c
+4
-0
No files found.
dlls/wined3d/surface.c
View file @
0ce3cb23
...
...
@@ -746,6 +746,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
if
(
iface
==
implSwapChain
->
backBuffer
||
iface
==
implSwapChain
->
frontBuffer
||
iface
==
myDevice
->
renderTarget
)
{
GLint
prev_store
;
GLint
prev_draw
;
GLint
prev_depth_test
;
GLint
prev_rasterpos
[
4
];
/* Some drivers(radeon dri, others?) don't like exceptions during
...
...
@@ -776,6 +777,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
vcheckGLcall
(
"glIntegerv"
);
glPixelZoom
(
1
.
0
,
-
1
.
0
);
vcheckGLcall
(
"glPixelZoom"
);
prev_depth_test
=
glIsEnabled
(
GL_DEPTH_TEST
);
/* glDrawPixels transforms the raster position as though it was a vertex -
we want to draw at screen position 0,0 - Set up ortho (rhw) mode as
...
...
@@ -796,6 +798,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
/* And back buffers are not blended */
glDisable
(
GL_BLEND
);
glDisable
(
GL_DEPTH_TEST
);
glRasterPos3i
(
This
->
lockedRect
.
left
,
This
->
lockedRect
.
top
,
1
);
vcheckGLcall
(
"glRasterPos2f"
);
...
...
@@ -897,6 +900,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
vcheckGLcall
(
"glDrawBuffer"
);
glRasterPos3iv
(
&
prev_rasterpos
[
0
]);
vcheckGLcall
(
"glRasterPos3iv"
);
if
(
prev_depth_test
)
glEnable
(
GL_DEPTH_TEST
);
/* Reset to previous pack row length / blending state */
glPixelStorei
(
GL_UNPACK_ROW_LENGTH
,
skipBytes
);
...
...
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