MCPcopy Create free account
hub / github.com/cginternals/glbinding / registerGetErrorCallback

Function registerGetErrorCallback

source/glbinding-aux/source/debug.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48void registerGetErrorCallback()
49{
50 glbinding::setAfterCallback([](const glbinding::FunctionCall & functionCall) {
51 const auto errorCode = Binding::GetError.directCall();
52
53 if (errorCode == gl::GL_NO_ERROR)
54 {
55 return;
56 }
57
58 std::cerr << functionCall.function->name() << " generated " << readableErrorCode(errorCode);
59 });
60
61 getErrorCallbackRegistered = true;
62}
63
64void enableGetErrorCallback()
65{

Callers 1

enableGetErrorCallbackFunction · 0.85

Calls 3

setAfterCallbackFunction · 0.85
readableErrorCodeFunction · 0.85
nameMethod · 0.80

Tested by

no test coverage detected