MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / drain_errors

Function drain_errors

src/platform/linux/graphics.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 GladGLContext ctx;
34
35 void drain_errors(const std::string_view &prefix) {
36 GLenum err;
37 while ((err = ctx.GetError()) != GL_NO_ERROR) {
38 BOOST_LOG(error) << "GL: "sv << prefix << ": ["sv << util::hex(err).to_string_view() << ']';
39 }
40 }
41
42 tex_t::~tex_t() {
43 if (size() != 0) {

Callers

nothing calls this directly

Calls 2

hexFunction · 0.85
to_string_viewMethod · 0.80

Tested by

no test coverage detected