History

address Sam's concerns

Brad Hefta-Gaub committed 11 years ago

Commit 9a0e5b91 parent 62c1e4013 files · +29 −68Browse files

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

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+4−5
@@ -15,7 +15,6 @@ · 14 unmodified lines
1515 #include <RenderArgs.h>
1616 #include <ViewFrustum.h>
1717 #include <gpu/Context.h>
18−#include <gpu/DoInBatch.h>
1918
2019 #include "FramebufferCache.h"
2120 #include "DeferredLightingEffect.h"
@@ -33,7 +32,7 @@ using namespace render; · 11 unmodified lines
3332
3433 void SetupDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext) {
3534 RenderArgs* args = renderContext->args;
36− doInBatch(args, [=](gpu::Batch& batch) {
35+ doInBatch(args->_context, [=](gpu::Batch& batch) {
3736
3837 auto primaryFbo = DependencyManager::get<FramebufferCache>()->getPrimaryFramebufferDepthColor();
3938
@@ -167,7 +166,7 @@ void DrawOpaqueDeferred::run(const SceneContextPointer& sceneContext, const Rend · 127 unmodified lines
167166 assert(renderContext->args->_viewFrustum);
168167
169168 RenderArgs* args = renderContext->args;
170− doInBatch(args, [=](gpu::Batch& batch) {
169+ doInBatch(args->_context, [=](gpu::Batch& batch) {
171170 batch.setViewportTransform(args->_viewport);
172171 batch.setStateScissorRect(args->_viewport);
173172 args->_batch = &batch;
@@ -196,7 +195,7 @@ void DrawTransparentDeferred::run(const SceneContextPointer& sceneContext, const · 22 unmodified lines
196195 assert(renderContext->args->_viewFrustum);
197196
198197 RenderArgs* args = renderContext->args;
199− doInBatch(args, [=](gpu::Batch& batch) {
198+ doInBatch(args->_context, [=](gpu::Batch& batch) {
200199 batch.setViewportTransform(args->_viewport);
201200 batch.setStateScissorRect(args->_viewport);
202201 args->_batch = &batch;
@@ -268,7 +267,7 @@ void DrawOverlay3D::run(const SceneContextPointer& sceneContext, const RenderCon · 65 unmodified lines
268267 }
269268
270269 // Render the items
271− doInBatch(args, [=](gpu::Batch& batch) {
270+ doInBatch(args->_context, [=](gpu::Batch& batch) {
272271 args->_batch = &batch;
273272 args->_whiteTexture = DependencyManager::get<TextureCache>()->getWhiteTexture();
274273