MCPcopy Create free account
hub / github.com/cginternals/globjects / manualErrorCheckAfter

Function manualErrorCheckAfter

source/globjects/source/globjects.cpp:39–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37std::mutex g_mutex;
38
39void manualErrorCheckAfter(const glbinding::AbstractFunction & function)
40{
41 globjects::Error error = globjects::Error::get();
42
43 if (!error)
44 return;
45
46 if (!globjects::Registry::current().isInitialized())
47 {
48 globjects::debug() << "Error during initialization: " << error.name();
49 return;
50 }
51
52 if (!globjects::DebugMessage::isFallbackImplementation())
53 return;
54
55 std::stringstream stream;
56 stream << function.name() << " generated " << error.name();
57
58 globjects::DebugMessage::insertMessage(GL_DEBUG_SOURCE_API_ARB, GL_DEBUG_TYPE_ERROR_ARB, static_cast<unsigned int>(error.code()), GL_DEBUG_SEVERITY_HIGH_ARB, stream.str());
59}
60
61void initializeCallbacks()
62{

Callers 1

initializeCallbacksFunction · 0.85

Calls 6

getFunction · 0.85
debugFunction · 0.85
isInitializedMethod · 0.80
codeMethod · 0.80
strMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected