MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / destroy

Method destroy

src/host/stage_view.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void StageView::destroy() {
46 if (fbo_ != 0) {
47 canvas_.glDeleteFramebuffers(1, &fbo_);
48 fbo_ = 0;
49 }
50 if (texture_ != 0) {
51 canvas_.glDeleteTextures(1, &texture_);
52 texture_ = 0;
53 }
54 width_ = 0;
55 height_ = 0;
56}
57
58void StageView::ensure_size(int width, int height) {
59 if (width <= 0 || height <= 0) {

Callers

nothing calls this directly

Calls 2

glDeleteFramebuffersMethod · 0.80
glDeleteTexturesMethod · 0.80

Tested by

no test coverage detected