Removes Handle from ShaderProgram to use more high-level objects.

Tested By: Stan
Differential Revision: https://code.wildfiregames.com/D4403
This was SVN commit r26138.
This commit is contained in:
vladislavbelov
2021-12-29 07:07:08 +00:00
parent b9e4c14083
commit 92cf0c784c
6 changed files with 28 additions and 44 deletions
+1 -1
View File
@@ -688,7 +688,7 @@ void ShaderModelRenderer::Render(const RenderModifierPtr& modifier, const CShade
CTexture* newTex = samp.Sampler.get();
if (texBindings[s].Active() && newTex != currentTexs[s])
{
shader->BindTexture(texBindings[s], newTex->GetHandle());
shader->BindTexture(texBindings[s], samp.Sampler);
currentTexs[s] = newTex;
}
}