MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / osvrClientFreeDisplay

Function osvrClientFreeDisplay

src/osvr/ClientKit/DisplayC.cpp:124–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 "Must pass a valid display input index.")
123
124OSVR_ReturnCode osvrClientFreeDisplay(OSVR_DisplayConfig disp) {
125 OSVR_VALIDATE_DISPLAY_CONFIG;
126 OSVR_ClientContext ctx = disp->ctx;
127 BOOST_ASSERT_MSG(
128 ctx != nullptr,
129 "Should never get a display config object with a null context in it.");
130 if (nullptr == ctx) {
131 return OSVR_RETURN_FAILURE;
132 }
133 auto freed = ctx->releaseObject(disp);
134 return freed ? OSVR_RETURN_SUCCESS : OSVR_RETURN_FAILURE;
135}
136
137OSVR_ReturnCode osvrClientCheckDisplayStartup(OSVR_DisplayConfig disp) {
138 OSVR_VALIDATE_DISPLAY_CONFIG;

Callers 1

mainFunction · 0.85

Calls 1

releaseObjectMethod · 0.80

Tested by

no test coverage detected