Moved the 'WINDOWS || WINRT' endif that was preventing the graphics device from being created.