From ca3f1d941a0b9a7997a68add16cfeee5c0f0b895 Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Sat, 16 Jun 2012 19:47:38 +0000 Subject: [PATCH] * Fix issue 505 git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9506 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java b/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java index 93a8d07b3..a1ce9e8c0 100644 --- a/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java +++ b/engine/src/lwjgl/com/jme3/renderer/lwjgl/LwjglRenderer.java @@ -1057,6 +1057,9 @@ public class LwjglRenderer implements Renderer { if (caps.contains(Caps.OpenGL30)) { // Check if GLSL version is 1.5 for shader GL30.glBindFragDataLocation(id, 0, "outFragColor"); + for(int i = 0 ; i < maxMRTFBOAttachs ; i++) { + GL30.glBindFragDataLocation(id, i, "outFragData[" + i + "]"); + } } // link shaders to program