Skip to content

Commit

Permalink
Fixed crash with translucent materials
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed May 24, 2021
1 parent 73e01df commit 4b4af34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/renderInstance/renderElemMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ inline bool RenderElemMgr::newPassNeeded(MatInstance* currMatInst, RenderInst* r
// 1. There's no Material Instance (old ff object?)
// 2. If the material differ
// 3. If the material instance types are different.
return ((ri->matInst == NULL) || (ri->matInst->getMaterial() != currMatInst->getMaterial()) || (currMatInst->compare(ri->matInst) != 0));
return ((ri->matInst == NULL) || (ri->matInst != currMatInst) || (currMatInst->compare(ri->matInst) != 0));
}


Expand Down

0 comments on commit 4b4af34

Please sign in to comment.