Fix for flash Stage3D games