MCPcopy Create free account
hub / github.com/TurningWheel/Barony / unbindForWriting

Method unbindForWriting

src/draw.cpp:959–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959void framebuffer::unbindForWriting() {
960 if (!fbStack.empty()) {
961 fbStack.pop_back();
962 }
963 if (fbStack.empty()) {
964 GL_CHECK_ERR(glBindFramebuffer(GL_FRAMEBUFFER, 0));
965 GL_CHECK_ERR(glViewport(0, 0, xres, yres));
966 } else {
967 auto fb = fbStack.back();
968 fbStack.pop_back();
969 fb->bindForWriting();
970 }
971}
972
973void framebuffer::unbindForReading() {
974 GL_CHECK_ERR(glBindFramebuffer(GL_READ_FRAMEBUFFER, 0));

Callers 8

glEndCameraFunction · 0.80
GO_GetPixelU32Function · 0.80
GO_SwapBuffersFunction · 0.80
mainFunction · 0.80
changeVideoModeFunction · 0.80
resizeWindowFunction · 0.80
baseCreateLoadingScreenFunction · 0.80
postdrawMethod · 0.80

Calls 2

bindForWritingMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected