MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / resetGpuResources

Method resetGpuResources

src/gui/SpectrumWidget.cpp:4170–4183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4168}
4169
4170void SpectrumWidget::resetGpuResources()
4171{
4172#ifdef AETHER_GPU_SPECTRUM
4173 // On macOS/Windows, the GPU surface doesn't survive reparenting — tear
4174 // down old pipelines so initialize() rebuilds them for the new window.
4175 // On Linux (OpenGL), a simple update() is sufficient (#1240).
4176#ifndef Q_OS_LINUX
4177 releaseResources();
4178#endif
4179#endif
4180 if (!m_shutdownPrepared) {
4181 update();
4182 }
4183}
4184
4185// Horizontally reproject a waterfall image from one frequency frame
4186// (oldCenter/oldBw) to another (newCenter/newBw). Overlapping spectrum is

Callers 4

refreshAfterReparentFunction · 0.80
rearrangeLayoutMethod · 0.80
floatPanadapterMethod · 0.80
dockPanadapterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected