History

address Sam's concerns

Brad Hefta-Gaub committed 11 years ago

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

Showing the changes to interface/src/Application.cpp (1 of 13 files). Show all

Unified · Split

interface/src/Application.cpp+3−5
@@ -69,7 +69,6 @@ · 68 unmodified lines
6969 #include <FramebufferCache.h>
7070 #include <gpu/Batch.h>
7171 #include <gpu/Context.h>
72−#include <gpu/DoInBatch.h>
7372 #include <gpu/GLBackend.h>
7473 #include <HFActionEvent.h>
7574 #include <HFBackEvent.h>
@@ -1087,12 +1086,11 @@ void Application::paintGL() { · 1011 unmodified lines
10871086 auto mirrorRectDest = glm::ivec4(mirrorRect.z, mirrorRect.y, mirrorRect.x, mirrorRect.w);
10881087
10891088 auto selfieFbo = DependencyManager::get<FramebufferCache>()->getSelfieFramebuffer();
1090− doInBatch(&renderArgs, [=](gpu::Batch& batch) {
1089+ doInBatch(renderArgs._context, [=](gpu::Batch& batch) {
10911090 batch.setFramebuffer(selfieFbo);
10921091 batch.clearColorFramebuffer(gpu::Framebuffer::BUFFER_COLOR0, glm::vec4(0.0f, 0.0f, 0.0f, 0.0f));
10931092 batch.blit(primaryFbo, mirrorRect, selfieFbo, mirrorRectDest);
10941093 batch.setFramebuffer(nullptr);
1095− renderArgs._context->render(batch);
10961094 });
10971095 }
10981096 }
@@ -1217,7 +1215,7 @@ void Application::paintGL() { · 118 unmodified lines
12171215 }
12181216 displaySide(&renderArgs, _myCamera);
12191217 renderArgs._context->enableStereo(false);
1220− doInBatch(&renderArgs, [](gpu::Batch& batch) {
1218+ doInBatch(renderArgs._context, [](gpu::Batch& batch) {
12211219 batch.setFramebuffer(nullptr);
12221220 });
12231221 }
@@ -1281,7 +1279,7 @@ void Application::paintGL() { · 57 unmodified lines
12811279
12821280 // Reset the gpu::Context Stages
12831281 // Back to the default framebuffer;
1284− doInBatch(&renderArgs, [=](gpu::Batch& batch) {
1282+ doInBatch(renderArgs._context, [=](gpu::Batch& batch) {
12851283 batch.resetStages();
12861284 });
12871285 }