Fixed static WGL extensions
This commit is contained in:
parent
0246a05a16
commit
65c2910e77
|
@ -170,6 +170,16 @@ public class GLWindow extends Window {
|
|||
public boolean OpenGL13;
|
||||
public boolean OpenGL14;
|
||||
|
||||
/*
|
||||
* Available WGL extensions
|
||||
*/
|
||||
public boolean WGL_ARB_buffer_region;
|
||||
public boolean WGL_ARB_extensions_string;
|
||||
public boolean WGL_ARB_pbuffer;
|
||||
public boolean WGL_ARB_pixel_format;
|
||||
public boolean WGL_ARB_render_texture;
|
||||
public boolean WGL_EXT_extensions_string;
|
||||
public boolean WGL_EXT_swap_control;
|
||||
|
||||
/**
|
||||
* Determine which extensions are available
|
||||
|
@ -229,17 +239,6 @@ public class GLWindow extends Window {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Available WGL extensions
|
||||
*/
|
||||
public static boolean WGL_ARB_buffer_region;
|
||||
public static boolean WGL_ARB_extensions_string;
|
||||
public static boolean WGL_ARB_pbuffer;
|
||||
public static boolean WGL_ARB_pixel_format;
|
||||
public static boolean WGL_ARB_render_texture;
|
||||
public static boolean WGL_EXT_extensions_string;
|
||||
public static boolean WGL_EXT_swap_control;
|
||||
|
||||
/**
|
||||
* Checks and sets WGL_EXT_extensions_string and WGL_ARB_extensions_string
|
||||
* if available.
|
||||
|
@ -301,7 +300,6 @@ public class GLWindow extends Window {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
static {
|
||||
System.loadLibrary(Sys.getLibraryName());
|
||||
}
|
||||
|
|
|
@ -343,7 +343,7 @@ public class HWCursorTest {
|
|||
GL.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
//sync frame (only works on windows)
|
||||
if (GLWindow.WGL_EXT_swap_control) {
|
||||
if (gl.WGL_EXT_swap_control) {
|
||||
GL.wglSwapIntervalEXT(1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -321,7 +321,7 @@ public class FullScreenWindowedTest {
|
|||
GL.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
|
||||
//sync frame (only works on windows)
|
||||
if (GLWindow.WGL_EXT_swap_control) {
|
||||
if (gl.WGL_EXT_swap_control) {
|
||||
GL.wglSwapIntervalEXT(1);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -392,7 +392,7 @@ public class PbufferTest {
|
|||
*/
|
||||
private void glInit() {
|
||||
//sync frame (only works on windows)
|
||||
if (GLWindow.WGL_EXT_swap_control) {
|
||||
if (gl.WGL_EXT_swap_control) {
|
||||
GL.wglSwapIntervalEXT(1);
|
||||
}
|
||||
GL.glTexEnvf(GL.GL_TEXTURE_ENV, GL.GL_TEXTURE_ENV_MODE, GL.GL_REPLACE);
|
||||
|
|
Loading…
Reference in New Issue