projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ccf632
)
Fix to stop fgSetWindow(NULL) crashing on X11.
author
Christopher John Purnell
<cjp@lost.org.uk>
Tue, 2 Sep 2003 17:43:43 +0000
(17:43 +0000)
committer
Christopher John Purnell
<cjp@lost.org.uk>
Tue, 2 Sep 2003 17:43:43 +0000
(17:43 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@175
7f0cb862
-5218-0410-a997-
914c9d46530a
src/freeglut_window.c
patch
|
blob
|
history
diff --git
a/src/freeglut_window.c
b/src/freeglut_window.c
index
21b3006
..
eda79f2
100644
(file)
--- a/
src/freeglut_window.c
+++ b/
src/freeglut_window.c
@@
-306,6
+306,8
@@
GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly, unsigned
void fgSetWindow ( SFG_Window *window )
{
#if TARGET_HOST_UNIX_X11
+ if ( window )
+ {
/*
* Make the selected window's GLX context the current one
*/
@@
-314,7
+316,7
@@
void fgSetWindow ( SFG_Window *window )
window->Window.Handle,
window->Window.Context
);
-
+ }
#elif TARGET_HOST_WIN32
/*
* Release the previous' context's device context