Adds a few missing checks into the initialization sequence of the shader-based renderer relying on JOGL 2.0

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9885 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
jul..om 12 years ago
parent c84efe3436
commit f75b45aff7
  1. 13
      engine/src/jogl/com/jme3/renderer/jogl/JoglRenderer.java

@ -279,7 +279,9 @@ public class JoglRenderer implements Renderer {
caps.add(Caps.FloatDepthBuffer);
}
if (caps.contains(Caps.OpenGL30)) {
caps.add(Caps.PackedDepthStencilBuffer);
}
if (gl.isExtensionAvailable("GL_ARB_draw_instanced")) {
caps.add(Caps.MeshInstancing);
@ -302,6 +304,15 @@ public class JoglRenderer implements Renderer {
if (gl.isExtensionAvailable("GL_ARB_vertex_array_object")) {
caps.add(Caps.VertexBufferArray);
}
if (gl.isExtensionAvailable("GL_ARB_texture_non_power_of_two")) {
caps.add(Caps.NonPowerOfTwoTextures);
}
else {
logger.log(Level.WARNING, "Your graphics card does not "
+ "support non-power-of-2 textures. "
+ "Some features might not work.");
}
boolean latc = gl.isExtensionAvailable("GL_EXT_texture_compression_latc");
//FIXME ignore atdc?

Loading…
Cancel
Save