History

Added EXT support for Mac GL Query calls

Niraj Venkat committed 11 years ago

Commit 1894b421 parent 4478d762 files · +18 −23Browse files

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

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+0−17
@@ -104,27 +104,10 @@ void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const Rend · 103 unmodified lines
104104
105105 renderContext->args->_context->syncCache();
106106
107− // start the current timer query
108− auto& currentQuery = _timerQueries[_currentTimerQueryIndex];
109− {
110− gpu::Batch batch;
111− batch.beginQuery(currentQuery);
112− renderContext->args->_context->render(batch);
113− }
114−
115107 for (auto job : _jobs) {
116108 job.run(sceneContext, renderContext);
117109 }
118110
119− // End the current timer query
120− {
121− gpu::Batch batch;
122− batch.endQuery(currentQuery);
123− batch.getQuery(currentQuery);
124− renderContext->args->_context->render(batch);
125− (_currentTimerQueryIndex++);
126− _currentTimerQueryIndex = _currentTimerQueryIndex% _timerQueries.size();
127− }
128111 };
129112
130113 void DrawOpaqueDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems) {