Added caching system on framebuffers in OpenGL GS handler.
Removed unused functions.