Skip to content
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.

Commit

Permalink
fixed fbo render out buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
zgoethel committed Mar 20, 2016
1 parent fbe8d09 commit c7b9e0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/net/jibini/glutils/Framebuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c7b9e0c

Please sign in to comment.