* Add check for GL_ARB_texture_multisample before setting up the texture to see if its supported

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7210 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 14 years ago
parent 04445d2458
commit 7c7afb677f
  1. 6
      engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java

@ -1622,6 +1622,12 @@ public class LwjglRenderer implements Renderer {
}
}
// Check if graphics card doesn't support multisample textures
if (!GLContext.getCapabilities().GL_ARB_texture_multisample){
if (img.getMultiSamples() > 1)
throw new RendererException("Multisample textures not supported by graphics hardware");
}
if (target == GL_TEXTURE_CUBE_MAP) {
List<ByteBuffer> data = img.getData();
if (data.size() != 6) {

Loading…
Cancel
Save