Fixed Texture loading code

Added code to determine full to the resources, which were not showing
when the operating system ran the screensaver automatically.