Update of /cvsroot/java-game-lib/LWJGL/src/generated/org/lwjgl/opengl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10785/src/generated/org/lwjgl/opengl
Modified Files:
ContextCapabilities.java
Log Message:
OpenGL: Made generated ContextCapabilities only try to load super class symbols if a sub class is supported. This avoids spurious 'Could not locate symbol' warnings in debug mode (glLoadProgramNV on ATI hardware)
Index: ContextCapabilities.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/generated/org/lwjgl/opengl/ContextCapabilities.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ContextCapabilities.java 27 Dec 2005 14:46:42 -0000 1.5
+++ ContextCapabilities.java 6 Feb 2006 11:11:09 -0000 1.6
@@ -2094,9 +2094,20 @@
throw new LWJGLException("GL11 not supported");
GLContext.setCapabilities(this);
Set supported_extensions = GLContext.getSupportedExtensions();
- supported_extensions.add("GL_ARB_buffer_object");
- supported_extensions.add("GL_ARB_program");
- supported_extensions.add("GL_NV_program");
+ if (supported_extensions.contains("GL_ARB_fragment_program"))
+ supported_extensions.add("GL_ARB_program");
+ if (supported_extensions.contains("GL_ARB_pixel_buffer_object"))
+ supported_extensions.add("GL_ARB_buffer_object");
+ if (supported_extensions.contains("GL_ARB_vertex_buffer_object"))
+ supported_extensions.add("GL_ARB_buffer_object");
+ if (supported_extensions.contains("GL_ARB_vertex_program"))
+ supported_extensions.add("GL_ARB_program");
+ if (supported_extensions.contains("GL_EXT_pixel_buffer_object"))
+ supported_extensions.add("GL_ARB_buffer_object");
+ if (supported_extensions.contains("GL_NV_fragment_program"))
+ supported_extensions.add("GL_NV_program");
+ if (supported_extensions.contains("GL_NV_vertex_program"))
+ supported_extensions.add("GL_NV_program");
if (supported_extensions.contains("GL_ARB_buffer_object") && !ARB_buffer_object_initNativeFunctionAddresses())
supported_extensions.remove("GL_ARB_buffer_object");
if (supported_extensions.contains("GL_ARB_color_buffer_float") && !ARB_color_buffer_float_initNativeFunctionAddresses())
|