Follow-up to #91.

Pass the border color into CurveRenderState instead of determining it there; store the color as a static field in Curve (since it shouldn't change per-beatmap).

Also removed the leftover FrameBufferCache warning from #64.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-06-08 16:42:54 -04:00
parent a7d05a4b26
commit b1b1664e11
4 changed files with 16 additions and 21 deletions

View File

@@ -23,8 +23,6 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.newdawn.slick.util.Log;
/**
* This is cache for OpenGL FrameBufferObjects. This is currently only used
* to draw curve objects of the new slider style. Does currently not integrate
@@ -33,9 +31,6 @@ import org.newdawn.slick.util.Log;
* @author Bigpet {@literal <dravorek (at) gmail.com>}
*/
public class FrameBufferCache {
/** The initial cache size. */
//private static final int INITIAL_CACHE_SIZE = 4;
/** The single framebuffer cache instance. */
private static FrameBufferCache instance = null;
@@ -123,7 +118,6 @@ public class FrameBufferCache {
// no unmapped RTTFramebuffer found, create a new one
buffer = Rendertarget.createRTTFramebuffer(width, height);
cache.add(buffer);
Log.warn("Framebuffer cache was not large enough, possible resource leak.");
cacheMap.put(obj, buffer);
return buffer;
}