Fixed crash on Intel GPUs