private void bindRenderTarget(int fbo) {
		if (fbo == boundFbo) {
			return;
		}
		FramebufferData data = framebuffers.get(fbo);
		glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fbo);
		boundFbo = fbo;

		glMatrixMode(GL_PROJECTION);
		glLoadIdentity();
		glMatrixMode(GL_MODELVIEW);

		glViewport(0, 0, data.width, data.height);
	}