Skip to content
Permalink
Browse files

Fix texture binding bug

  • Loading branch information
dpjudas committed Dec 2, 2019
1 parent 865b7a1 commit f501e1bb49e19b31a53de67fa70543de03558768
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rendering/polyrenderer/backend/poly_renderstate.cpp
@@ -241,7 +241,7 @@ void PolyRenderState::ApplyMaterial()
FTexture* layer;
auto systex = static_cast<PolyHardwareTexture*>(mMaterial.mMaterial->GetLayer(i, 0, &layer));

texcanvas = systex->GetImage(mMaterial);
texcanvas = systex->GetImage(layer, 0, mMaterial.mMaterial->isExpanded() ? CTF_Expand : 0);
PolyTriangleDrawer::SetTexture(GetPolyFrameBuffer()->GetDrawCommands(), i, texcanvas->GetPixels(), texcanvas->GetHeight(), texcanvas->GetWidth(), texcanvas->IsBgra());
}
}

0 comments on commit f501e1b

Please sign in to comment.
You can’t perform that action at this time.