private void removeTexture(Texture texture) {
		if (texture != null) {
			texture.setCounter(texture.getCounter() - 1);

			if (LOGGER.isDebugEnabled())
				LOGGER.debug("Texture '" + texture.getFilePath() + "' is used '" + texture.getCounter() + "' time(s)");

			if (texture.getCounter() == 0) {
				// texture is not used any more -> release its resources
				textureCache.remove(texture.getFilePath());

				if (LOGGER.isDebugEnabled())
					LOGGER.debug("Successfully removed texture: " + texture);
			}
		}
	}