Minor code style changes from #102.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user