History

Back to clean state, just added the Material Key

Sam Gateau committed 11 years ago

Commit 470e2481 parent 7de4c2e1 file · +2 −2Browse files

Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 1 file). Show all

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+2−2
@@ -117,14 +117,14 @@ template <> void render::jobRun(const DrawOpaqueDeferred& job, const SceneContex · 116 unmodified lines
117 }117 }
118 118
119 // ItemIDsBounds sortedItems;119 // ItemIDsBounds sortedItems;
120 ItemMaterialBucketMap stateSortedItems;120 /* ItemMaterialBucketMap stateSortedItems;
121 stateSortedItems.allocateStandardMaterialBuckets();121 stateSortedItems.allocateStandardMaterialBuckets();
122 if (true) {122 if (true) {
123 for (auto& itemIDAndBound : renderedItems) {123 for (auto& itemIDAndBound : renderedItems) {
124 stateSortedItems.insert(itemIDAndBound.id, scene->getItem(itemIDAndBound.id).getMaterialKey());124 stateSortedItems.insert(itemIDAndBound.id, scene->getItem(itemIDAndBound.id).getMaterialKey());
125 }125 }
126 }126 }
127 127*/
128 128
129 if (renderContext->_renderOpaque) {129 if (renderContext->_renderOpaque) {
130 RenderArgs* args = renderContext->args;130 RenderArgs* args = renderContext->args;