- route texture binding through the renderstate class for better control. Currently it's just a direct passthrough but this will change.
This commit is contained in:
parent
d5633701b4
commit
4bb320a27c
16 changed files with 37 additions and 35 deletions
|
|
@ -417,7 +417,7 @@ int FVoxelModel::FindFrame(const char * name)
|
|||
void FVoxelModel::RenderFrame(FTexture * skin, int frame, int frame2, double inter, int translation)
|
||||
{
|
||||
FMaterial * tex = FMaterial::ValidateTexture(skin, false);
|
||||
tex->Bind(CLAMP_NOFILTER, translation, -1, false);
|
||||
gl_RenderState.SetMaterial(tex, CLAMP_NOFILTER, translation, -1, false);
|
||||
|
||||
gl_RenderState.Apply();
|
||||
GLRenderer->mModelVBO->SetupFrame(vindex, vindex, 0.f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue