From 85f1e6ab46e1b4c63397eaf7bbac5824e97d52ea Mon Sep 17 00:00:00 2001 From: TehLeo Date: Sat, 12 Nov 2016 18:51:14 +0100 Subject: [PATCH] Update GLRenderer.java --- .../src/main/java/com/jme3/renderer/opengl/GLRenderer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java index 2052f91d2..18dde97c7 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java +++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java @@ -298,6 +298,10 @@ public final class GLRenderer implements Renderer { if (hasFloatTexture) { caps.add(Caps.FloatTexture); } + + // integer texture format extensions + if(hasExtension("GL_EXT_texture_integer") || caps.contains(Caps.OpenGL30)) + caps.add(Caps.IntegerTexture); if (hasExtension("GL_OES_depth_texture") || gl2 != null) { caps.add(Caps.DepthTexture);