Fix sampler uniform error message enum;

Surprisingly, this appears to be the only place reading out of enum
arrays like this, so there shouldn't be any other places to fix.
This commit is contained in:
bjorn 2020-03-14 16:46:35 -07:00
parent 6d0369d365
commit e553672b5a
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ int luax_checkuniform(lua_State* L, int index, const Uniform* uniform, void* des
case UNIFORM_SAMPLER: {
*((Texture**) dest + i) = luax_checktype(L, j, Texture);
TextureType type = lovrTextureGetType(*((Texture**) dest + i));
lovrAssert(type == uniform->textureType, "Attempt to send %s texture to %s sampler uniform", TextureTypes[type], TextureTypes[uniform->textureType]);
lovrAssert(type == uniform->textureType, "Attempt to send %s texture to %s sampler uniform", TextureTypes[type].string, TextureTypes[uniform->textureType].string);
break;
}