MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / flush

Method flush

framework/render/gl20/ogl_2_0_renderer.cpp:911–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909 this->drawFilledRect(D, sizeD, c);
910 }
911 void flush() override
912 {
913 // Cleanup any outstanding destroyed texture or framebuffer objects
914 {
915 std::lock_guard<std::mutex> lock(this->destroyed_texture_list_mutex);
916
917 for (auto &id : this->destroyed_texture_list)
918 {
919 gl20::DeleteTextures(1, &id);
920 }
921 this->destroyed_texture_list.clear();
922 }
923 {
924 std::lock_guard<std::mutex> lock(this->destroyed_framebuffer_list_mutex);
925
926 for (auto &id : this->destroyed_framebuffer_list)
927 {
928 gl20::DeleteFramebuffersEXT(1, &id);
929 }
930 this->destroyed_framebuffer_list.clear();
931 }
932 }
933 UString getName() override { return "OGL2.0 Renderer"; }
934 sp<Surface> getDefaultSurface() override { return this->defaultSurface; }
935

Callers 5

setSurfaceMethod · 0.95
clearMethod · 0.95
setPaletteMethod · 0.95
FileLogFunctionFunction · 0.45
runMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected