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

Method GlScopedChecker

src/SFML/Graphics/GLCheck.cpp:113–120  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

111{
112////////////////////////////////////////////////////////////
113GlScopedChecker::GlScopedChecker(const std::string_view file, const std::string_view expression, const unsigned int line) :
114 m_file(file),
115 m_expression(expression),
116 m_line(line)
117{
118 if (const GLenum error = glGetError(); error != GL_NO_ERROR)
119 err() << "OpenGL error (" << error << ") detected during glCheck call" << std::endl;
120}
121
122
123////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected