move glXMakeCurrent() to after the point where the window's title is set (helps Chromium)
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@505 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
290f7a43e8
commit
c3a84ddd90
@ -425,12 +425,6 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
||||
title );
|
||||
}
|
||||
|
||||
glXMakeCurrent(
|
||||
fgDisplay.Display,
|
||||
window->Window.Handle,
|
||||
window->Window.Context
|
||||
);
|
||||
|
||||
/*
|
||||
* XXX Assume the new window is visible by default
|
||||
* XXX Is this a safe assumption?
|
||||
@ -485,6 +479,12 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
||||
XSetWMProtocols( fgDisplay.Display, window->Window.Handle,
|
||||
&fgDisplay.DeleteWindow, 1 );
|
||||
|
||||
glXMakeCurrent(
|
||||
fgDisplay.Display,
|
||||
window->Window.Handle,
|
||||
window->Window.Context
|
||||
);
|
||||
|
||||
XMapWindow( fgDisplay.Display, window->Window.Handle );
|
||||
|
||||
#elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
|
||||
|
Reference in New Issue
Block a user