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
54d98ba7
Commit
54d98ba7
authored
Feb 13, 2011
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Feb 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove an old hack around Mesa choking on protected memory from…
wined3d: Remove an old hack around Mesa choking on protected memory from flush_to_framebuffer_drawpixels.
parent
8c9abc1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
surface.c
dlls/wined3d/surface.c
+0
-17
No files found.
dlls/wined3d/surface.c
View file @
54d98ba7
...
...
@@ -1960,23 +1960,6 @@ static void flush_to_framebuffer_drawpixels(IWineD3DSurfaceImpl *This,
glRasterPos3i
(
rect
.
left
,
rect
.
top
,
1
);
checkGLcall
(
"glRasterPos3i"
);
/* Some drivers(radeon dri, others?) don't like exceptions during
* glDrawPixels. If the surface is a DIB section, it might be in GDIMode
* after ReleaseDC. Reading it will cause an exception, which x11drv will
* catch to put the dib section in InSync mode, which leads to a crash
* and a blocked x server on my radeon card.
*
* The following lines read the dib section so it is put in InSync mode
* before glDrawPixels is called and the crash is prevented. There won't
* be any interfering gdi accesses, because UnlockRect is called from
* ReleaseDC, and the app won't use the dc any more afterwards.
*/
if
((
This
->
flags
&
SFLAG_DIBSECTION
)
&&
!
(
This
->
flags
&
SFLAG_PBO
))
{
volatile
BYTE
read
;
read
=
This
->
resource
.
allocatedMemory
[
0
];
}
/* If not fullscreen, we need to skip a number of bytes to find the next row of data */
glPixelStorei
(
GL_UNPACK_ROW_LENGTH
,
This
->
currentDesc
.
Width
);
...
...
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