Commits

Michael Ludwig committed 28d20c1

Correct destination format for 32bit RGBA formats (was stripping off the alpha channel)

  • Participants
  • Parent commits 6566239

Comments (0)

Files changed (2)

ferox-renderer-jogl/src/main/java/com/ferox/renderer/impl/jogl/Utils.java

             if (!caps.getUnclampedFloatTextureSupport()) {
                 return GL2GL3.GL_RGBA16;
             } else {
-                return GL2GL3.GL_RGB32F;
+                return GL2GL3.GL_RGBA32F;
             }
         case RGBA_BYTE:
         case BGRA_BYTE:

ferox-renderer-lwjgl/src/main/java/com/ferox/renderer/impl/lwjgl/Utils.java

             } else if (caps.getMajorVersion() < 3) {
                 return ARBTextureFloat.GL_RGBA32F_ARB;
             } else {
-                return GL30.GL_RGB32F;
+                return GL30.GL_RGBA32F;
             }
         case RGBA_BYTE:
         case BGRA_BYTE: