Fixed resize issue where device could be re-initialized at new resolution. Removed volatile variable workaround, replaced with critical section. Now can resize freely!