@Override
	public int createRenderTarget(int width, int height, int texId) {
		int fbo = glGenFramebuffersEXT();
		FramebufferData data = new FramebufferData(width, height);
		framebuffers.put(fbo, data);
		if (texId != 0 && texId != -1) {
			bindRenderTarget(fbo);
			glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,
					GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, texId, 0);
		}
		return fbo;
	}