VideoCommon: fix variable types fed to Write() function
This commit is contained in:
parent
763f17beaf
commit
5380fd9dba
|
@ -184,7 +184,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
|
|||
|
||||
out.Write("//Pixel Shader for TEV stages\n");
|
||||
out.Write("//%i TEV stages, %i texgens, %i IND stages\n",
|
||||
numStages, numTexgen, bpmem.genMode.numindstages);
|
||||
numStages, numTexgen, bpmem.genMode.numindstages.Value());
|
||||
|
||||
uid_data->dstAlphaMode = dstAlphaMode;
|
||||
uid_data->genMode_numindstages = bpmem.genMode.numindstages;
|
||||
|
|
|
@ -83,11 +83,11 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ
|
|||
else
|
||||
{
|
||||
// Let's set up attributes
|
||||
for (size_t i = 0; i < 8; ++i)
|
||||
for (u32 i = 0; i < 8; ++i)
|
||||
{
|
||||
if (i < xfmem.numTexGen.numTexGens)
|
||||
{
|
||||
out.Write("%s out float3 uv%d;\n", GetInterpolationQualifier(api_type), i);
|
||||
out.Write("%s out float3 uv%u;\n", GetInterpolationQualifier(api_type), i);
|
||||
}
|
||||
}
|
||||
out.Write("%s out float4 clipPos;\n", GetInterpolationQualifier(api_type));
|
||||
|
|
Loading…
Reference in New Issue