MCPcopy Create free account
hub / github.com/SFML/SFML / display

Method display

src/SFML/Window/Unix/GlxContext.cpp:237–252  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

235
236////////////////////////////////////////////////////////////
237void GlxContext::display()
238{
239#if defined(GLX_DEBUGGING)
240 GlxErrorHandler handler(m_display.get());
241#endif
242
243 if (m_pbuffer)
244 glXSwapBuffers(m_display.get(), m_pbuffer);
245 else if (m_window)
246 glXSwapBuffers(m_display.get(), m_window);
247
248#if defined(GLX_DEBUGGING)
249 if (glxErrorOccurred)
250 err() << "GLX error in GlxContext::display()" << std::endl;
251#endif
252}
253
254
255////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected