DeviceResetting bugfix, only check FBO in Debug context