* Fix issue 505

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9506 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 13 years ago
parent 9349bd97c6
commit ca3f1d941a
  1. 3
      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

Loading…
Cancel
Save