mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Fixed
This commit is contained in:
parent
24160ac606
commit
16d8c3c053
5 changed files with 18 additions and 33 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue