Fix performance window access to SharedMemory

This commit is contained in:
Alexander Bock
2015-12-23 14:41:17 -05:00
parent 0895d6e6d0
commit 1a4ea8763e
3 changed files with 11 additions and 4 deletions
@@ -87,7 +87,7 @@ void GuiPerformanceComponent::render() {
_performanceMemory = new ghoul::SharedMemory(RenderEngine::PerformanceMeasurementSharedData);
void* ptr = _performanceMemory;
void* ptr = _performanceMemory->memory();
PerformanceLayout* layout = reinterpret_cast<PerformanceLayout*>(ptr);
for (int i = 0; i < layout->nEntries; ++i) {