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
2a0b18dc
Commit
2a0b18dc
authored
Nov 29, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
Nov 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash in wglShareList.
parent
f9fef851
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
wgl.c
dlls/opengl32/wgl.c
+5
-4
No files found.
dlls/opengl32/wgl.c
View file @
2a0b18dc
...
@@ -560,7 +560,7 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1,
...
@@ -560,7 +560,7 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1,
TRACE
(
"(%p, %p)
\n
"
,
org
,
dest
);
TRACE
(
"(%p, %p)
\n
"
,
org
,
dest
);
if
(
dest
->
ctx
!=
NULL
)
{
if
(
NULL
!=
dest
&&
dest
->
ctx
!=
NULL
)
{
ERR
(
"Could not share display lists, context already created !
\n
"
);
ERR
(
"Could not share display lists, context already created !
\n
"
);
return
FALSE
;
return
FALSE
;
}
else
{
}
else
{
...
@@ -570,15 +570,16 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1,
...
@@ -570,15 +570,16 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1,
LEAVE_GL
();
LEAVE_GL
();
TRACE
(
" created a delayed OpenGL context (%p) for Wine context %p
\n
"
,
org
->
ctx
,
org
);
TRACE
(
" created a delayed OpenGL context (%p) for Wine context %p
\n
"
,
org
->
ctx
,
org
);
}
}
if
(
NULL
!=
dest
)
{
ENTER_GL
();
ENTER_GL
();
/* Create the destination context with display lists shared */
/* Create the destination context with display lists shared */
dest
->
ctx
=
glXCreateContext
(
org
->
display
,
dest
->
vis
,
org
->
ctx
,
True
);
dest
->
ctx
=
glXCreateContext
(
org
->
display
,
dest
->
vis
,
org
->
ctx
,
True
);
LEAVE_GL
();
LEAVE_GL
();
TRACE
(
" created a delayed OpenGL context (%p) for Wine context %p sharing lists with OpenGL ctx %p
\n
"
,
dest
->
ctx
,
dest
,
org
->
ctx
);
TRACE
(
" created a delayed OpenGL context (%p) for Wine context %p sharing lists with OpenGL ctx %p
\n
"
,
dest
->
ctx
,
dest
,
org
->
ctx
);
}
return
TRUE
;
return
TRUE
;
}
}
return
FALSE
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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