Back to clean state, just added the Material Key

This commit is contained in:
Sam Gateau 2015-06-10 00:31:36 -07:00
parent 7de4c2eff7
commit 470e24820d

View file

@ -117,14 +117,14 @@ template <> void render::jobRun(const DrawOpaqueDeferred& job, const SceneContex
}
// ItemIDsBounds sortedItems;
ItemMaterialBucketMap stateSortedItems;
/* ItemMaterialBucketMap stateSortedItems;
stateSortedItems.allocateStandardMaterialBuckets();
if (true) {
for (auto& itemIDAndBound : renderedItems) {
stateSortedItems.insert(itemIDAndBound.id, scene->getItem(itemIDAndBound.id).getMaterialKey());
}
}
*/
if (renderContext->_renderOpaque) {
RenderArgs* args = renderContext->args;