Minor code style changes from #102.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-06-28 02:38:50 -05:00
parent b6a99f8bdd
commit 52cb5d24f0
3 changed files with 13 additions and 19 deletions

View File

@@ -124,15 +124,14 @@ public class FrameBufferCache {
/**
* Clear the cache pool of Framebuffers.
* If there were any previous Framebuffers in the cache delete them
* this is necessary for cases when the game gets re-started with a
* different resolution without closing the process
* If there were any previous Framebuffers in the cache, delete them.
* <p>
* This is necessary for cases when the game gets restarted with a
* different resolution without closing the process.
*/
public static void shutdown()
{
public static void shutdown() {
FrameBufferCache fbcInstance = FrameBufferCache.getInstance();
for(Rendertarget target: fbcInstance.cache)
{
for (Rendertarget target : fbcInstance.cache) {
target.destroyRTT();
}
fbcInstance.cache.clear();