/** * Enable the given fragment texture. * * @param fragmentTexture * @param gl * context to which the given textures are bound. */ public void enable( FragmentTexture fragmentTexture, GL gl ) { if ( fragmentTexture.cachingEnabled() ) { FragmentTexture inCache = get( fragmentTexture.getId() ); if ( inCache == null ) { this.put( fragmentTexture.getId(), fragmentTexture ); } } if ( !fragmentTexture.isEnabled() ) { fragmentTexture.enable( gl ); } }