Fix Windows 64 bit gpu crash

Fix #2301 ,thanks @raven02