Fix profiler

This commit is contained in:
vlj 2014-05-09 18:54:06 +02:00
parent 5b511fedd8
commit b4e9a00574

View File

@ -781,17 +781,17 @@ void PostProcessing::render(scene::ICameraSceneNode * const camnode)
renderPassThrough(irr_driver->getRenderTargetTexture(RTT_BLOOM_512)); renderPassThrough(irr_driver->getRenderTargetTexture(RTT_BLOOM_512));
glDisable(GL_BLEND); glDisable(GL_BLEND);
} // end if bloom } // end if bloom
PROFILER_POP_CPU_MARKER();
} }
//computeLogLuminance(in_rtt); //computeLogLuminance(in_rtt);
{ {
// PROFILER_PUSH_CPU_MARKER("- Tonemap", 0xFF, 0x00, 0x00); PROFILER_PUSH_CPU_MARKER("- Tonemap", 0xFF, 0x00, 0x00);
ScopedGPUTimer Timer(irr_driver->getGPUTimer(Q_TONEMAP)); ScopedGPUTimer Timer(irr_driver->getGPUTimer(Q_TONEMAP));
toneMap(out_fbo, in_rtt); toneMap(out_fbo, in_rtt);
std::swap(in_rtt, out_rtt); std::swap(in_rtt, out_rtt);
std::swap(in_fbo, out_fbo); std::swap(in_fbo, out_fbo);
// PROFILER_POP_CPU_MARKER(); PROFILER_POP_CPU_MARKER();
} }
{ {