added texture swapping

This commit is contained in:
Sandro Sobczyński
2020-10-31 22:14:35 +01:00
parent 885e8b4f2b
commit f9dc79caf1
6 changed files with 48 additions and 42 deletions
+1
View File
@@ -83,6 +83,7 @@ void Renderer::deallocateTextureBuffer()
void Renderer::changeTexture(Mesh *t_mesh, u32 t_materialId)
{
MeshTexture *tex = textureRepo.getByMesh(t_mesh->id, t_materialId);
if (tex != NULL)
{