vk_shader_gen_spv: Return when gas mode is used

* Otherwise the shader compiler will crash since OpFunctionEnd was called
This commit is contained in:
GPUCode
2023-03-13 18:55:04 +02:00
committed by GitHub
parent 12a5265db1
commit ee26b5b82f

View File

@ -71,7 +71,7 @@ void FragmentModule::Generate() {
break;
case TexturingRegs::FogMode::Gas:
WriteGas();
break;
return;
default:
break;
}