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