VideoCommon: fix variable types fed to Write() function

This commit is contained in:
Ilia Mirkin 2015-10-16 18:00:03 -04:00
parent 763f17beaf
commit 5380fd9dba
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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));