MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / freeOpenGl

Method freeOpenGl

qcustomplot/qcustomplot.cpp:15243–15250  ·  view source on GitHub ↗

! \internal When \ref setOpenGl is set to false, this method is used to deinitialize OpenGL (releases the context and frees resources). After OpenGL is disabled, all paint buffers should be deleted and then reallocated by calling \ref setupPaintBuffers, so the standard software rendering paint buffer subclass (\ref QCPPaintBufferPixmap) is used for subsequent replots. \see setupOpen

Source from the content-addressed store, hash-verified

15241 \see setupOpenGl
15242*/
15243void QCustomPlot::freeOpenGl()
15244{
15245#ifdef QCP_OPENGL_FBO
15246 mGlPaintDevice.clear();
15247 mGlContext.clear();
15248 mGlSurface.clear();
15249#endif
15250}
15251
15252/*! \internal
15253

Callers

nothing calls this directly

Calls 1

clearMethod · 0.60

Tested by

no test coverage detected