Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 6 files). Show all
Unified · Split
| @@ -265,9 +265,12 @@ void DrawDeferred::run(const SceneContextPointer& sceneContext, const RenderCont · 264 unmodified lines | ||
| 265 | 265 | keyBuilder.withWireframe(); |
| 266 | 266 | } |
| 267 | 267 | ShapeKey globalKey = keyBuilder.build(); |
| 268 | + args->_globalShapeKey = globalKey._flags.to_ulong(); | |
| 268 | 269 | |
| 269 | 270 | renderShapes(sceneContext, renderContext, _shapePlumber, inItems, _maxDrawn, globalKey); |
| 271 | + | |
| 270 | 272 | args->_batch = nullptr; |
| 273 | + args->_globalShapeKey = 0; | |
| 271 | 274 | }); |
| 272 | 275 | |
| 273 | 276 | config->setNumDrawn((int)inItems.size()); |
| @@ -308,6 +311,7 @@ void DrawStateSortDeferred::run(const SceneContextPointer& sceneContext, const R · 34 unmodified lines | ||
| 308 | 311 | keyBuilder.withWireframe(); |
| 309 | 312 | } |
| 310 | 313 | ShapeKey globalKey = keyBuilder.build(); |
| 314 | + args->_globalShapeKey = globalKey._flags.to_ulong(); | |
| 311 | 315 | |
| 312 | 316 | if (_stateSort) { |
| 313 | 317 | renderStateSortShapes(sceneContext, renderContext, _shapePlumber, inItems, _maxDrawn, globalKey); |
| @@ -315,6 +319,7 @@ void DrawStateSortDeferred::run(const SceneContextPointer& sceneContext, const R · 1 unmodified line | ||
| 315 | 319 | renderShapes(sceneContext, renderContext, _shapePlumber, inItems, _maxDrawn, globalKey); |
| 316 | 320 | } |
| 317 | 321 | args->_batch = nullptr; |
| 322 | + args->_globalShapeKey = 0; | |
| 318 | 323 | }); |
| 319 | 324 | |
| 320 | 325 | config->setNumDrawn((int)inItems.size()); |