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
4d8135e0
Commit
4d8135e0
authored
Dec 14, 2006
by
Ulrich Czekalla
Committed by
Alexandre Julliard
Dec 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Avoid grabbing syslevel locks in the wrong order.
parent
7d98599d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
opengl.c
dlls/gdi32/opengl.c
+1
-1
opengl.c
dlls/winex11.drv/opengl.c
+6
-5
No files found.
dlls/gdi32/opengl.c
View file @
4d8135e0
...
...
@@ -169,7 +169,7 @@ BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
if
(
hglrc
==
NULL
)
dc
=
OPENGL_GetDefaultDC
();
else
dc
=
DC_GetDC
Ptr
(
hdc
);
dc
=
DC_GetDC
Update
(
hdc
);
TRACE
(
"hdc: (%p), hglrc: (%p)
\n
"
,
hdc
,
hglrc
);
...
...
dlls/winex11.drv/opengl.c
View file @
4d8135e0
...
...
@@ -1443,7 +1443,7 @@ PROC X11DRV_wglGetProcAddress(LPCSTR lpszProc)
* Adjust the current viewport and scissor in order to position
* and size the current drawable correctly on the parent window.
*/
static
void
sync_current_drawable
(
void
)
static
void
sync_current_drawable
(
BOOL
updatedc
)
{
int
dy
;
int
width
;
...
...
@@ -1455,7 +1455,8 @@ static void sync_current_drawable(void)
if
(
ctx
&&
ctx
->
physDev
)
{
GetClipBox
(
ctx
->
physDev
->
hdc
,
&
rc
);
/* Make sure physDev is up to date */
if
(
updatedc
)
GetClipBox
(
ctx
->
physDev
->
hdc
,
&
rc
);
/* Make sure physDev is up to date */
dy
=
ctx
->
physDev
->
drawable_rect
.
bottom
-
ctx
->
physDev
->
drawable_rect
.
top
-
ctx
->
physDev
->
dc_rect
.
bottom
;
...
...
@@ -1535,7 +1536,7 @@ BOOL X11DRV_wglMakeCurrent(X11DRV_PDEVICE *physDev, HGLRC hglrc) {
}
else
{
sync_current_drawable
();
sync_current_drawable
(
FALSE
);
}
}
}
...
...
@@ -1885,7 +1886,7 @@ static void WINAPI X11DRV_wglScissor(GLint x, GLint y, GLsizei width, GLsizei he
ctx
->
scissor
.
right
=
x
+
width
;
ctx
->
scissor
.
bottom
=
y
+
height
;
sync_current_drawable
();
sync_current_drawable
(
TRUE
);
}
static
void
WINAPI
X11DRV_wglViewport
(
GLint
x
,
GLint
y
,
GLsizei
width
,
GLsizei
height
)
...
...
@@ -1897,7 +1898,7 @@ static void WINAPI X11DRV_wglViewport(GLint x, GLint y, GLsizei width, GLsizei h
ctx
->
viewport
.
right
=
x
+
width
;
ctx
->
viewport
.
bottom
=
y
+
height
;
sync_current_drawable
();
sync_current_drawable
(
TRUE
);
}
/**
...
...
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