From c7b9e0c4d6cf9a9a1751134f2d43572e5fc0241a Mon Sep 17 00:00:00 2001 From: Zach Goethel Date: Sun, 20 Mar 2016 17:30:31 -0500 Subject: [PATCH] fixed fbo render out buffer --- src/net/jibini/glutils/Framebuffer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/net/jibini/glutils/Framebuffer.java b/src/net/jibini/glutils/Framebuffer.java index c7406ff..a2bb4f2 100644 --- a/src/net/jibini/glutils/Framebuffer.java +++ b/src/net/jibini/glutils/Framebuffer.java @@ -103,6 +103,8 @@ public Framebuffer(int width, int height) // @formatter:on FloatBuffer fboMeshBuffer = BufferUtils.createFloatBuffer(fboMeshData.length); + fboMeshBuffer.put(fboMeshData); + fboMeshBuffer.flip(); fboMesh = new MeshRenderer(); fboMesh.createInterleaved(fboMeshBuffer, fboMeshData.length / GLUtils.COORD_ELEMENTS); }