From 7c7afb677f27290e98a225d6eb676f3a607a5f13 Mon Sep 17 00:00:00 2001 From: "sha..rd" Date: Wed, 6 Apr 2011 22:51:41 +0000 Subject: [PATCH] * 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 --- .../lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java b/engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java index 69f42684b..c551e5470 100644 --- a/engine/src/lwjgl-ogl/com/jme3/renderer/lwjgl/LwjglRenderer.java +++ b/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 data = img.getData(); if (data.size() != 6) {