Fix vertex blend swapping in Hammer for SDK_LightmappedGeneric

Out of bounds array index corrupting the stack
This commit is contained in:
azzy 2024-04-27 04:31:21 +03:00 committed by GitHub
parent 471a840ed9
commit a49cff34f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1537,7 +1537,7 @@ void DrawLightmappedGeneric_DX9_Internal(CBaseVSShader *pShader, IMaterialVar**
float envMapOrigin[4] = {0,0,0,0};
params[info.m_nEnvmapOrigin]->GetVecValue( envMapOrigin, 3 );
#ifdef MAPBASE
envMapOrigin[4] = bEditorBlend ? 1.0f : 0.0f;
envMapOrigin[3] = bEditorBlend ? 1.0f : 0.0f;
#endif
pContextData->m_SemiStaticCmdsOut.SetPixelShaderConstant( 21, envMapOrigin );