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

Method popGLStates

src/SFML/Graphics/RenderTarget.cpp:554–569  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

552
553////////////////////////////////////////////////////////////
554void RenderTarget::popGLStates()
555{
556 if (RenderTargetImpl::isActive(m_id) || setActive(true))
557 {
558 glCheck(glMatrixMode(GL_PROJECTION));
559 glCheck(glPopMatrix());
560 glCheck(glMatrixMode(GL_MODELVIEW));
561 glCheck(glPopMatrix());
562 glCheck(glMatrixMode(GL_TEXTURE));
563 glCheck(glPopMatrix());
564#ifndef SFML_OPENGL_ES
565 glCheck(glPopClientAttrib());
566 glCheck(glPopAttrib());
567#endif
568 }
569}
570
571
572////////////////////////////////////////////////////////////

Callers 1

mainFunction · 0.80

Calls 1

isActiveFunction · 0.85

Tested by

no test coverage detected