This commit is contained in:
Caspian Rychlik-Prince 2003-03-28 21:04:43 +00:00
parent 24160ac606
commit 16d8c3c053
5 changed files with 18 additions and 33 deletions

View file

@ -131,13 +131,14 @@ public class BaseGL extends Window {
}
protected void doCreate() throws Exception {
nCreate(x, y, getWidth(), getHeight(), color, alpha, depth, stencil, fullscreen);
nCreate(getTitle(), x, y, getWidth(), getHeight(), color, alpha, depth, stencil, fullscreen);
}
/**
* Native method to create a windowed GL
*/
private native void nCreate(
String title,
int x,
int y,
int width,

View file

@ -1669,8 +1669,10 @@ public class GL extends CoreGL implements GLConstants {
final String exts;
if (WGL_ARB_extensions_string)
exts = wglGetExtensionsStringARB(Display.getHandle());
// Remember - this is an HWND not an HDC, which is what's required
exts = wglGetExtensionsStringARB(getHandle());
// Remember - this is an HWND not an HDC, which is what's required. The native
// code on the other side of wglGetExtensionsStringARB gets the HDC from the HWND
// behind the scenes.
else
exts = wglGetExtensionsStringEXT();