MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ShutdownGL

Method ShutdownGL

engine/PoseidonGL33/EngineGL33_Lifecycle.cpp:1054–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054void EngineGL33::ShutdownGL()
1055{
1056 LOG_INFO(Graphics, "GL33: ShutdownGL");
1057 _fonts.Clear();
1058 if (_textBank)
1059 {
1060 delete _textBank;
1061 _textBank = nullptr;
1062 }
1063
1064 DeinitVertexShaders();
1065 DeinitPixelShaders();
1066 DestroySamplerStates();
1067 DestroyVBTL();
1068 DestroyVB();
1069
1070 if (_fallbackWhiteTex)
1071 {
1072 GL33Bind::OnTexDeleted(_fallbackWhiteTex);
1073 glDeleteTextures(1, &_fallbackWhiteTex);
1074 _fallbackWhiteTex = 0;
1075 }
1076}
1077
1078// TextureDestroyed is mandated by the Engine interface (callers in the
1079// texture-destruction path notify the engine). GL33 has no per-texture

Callers

nothing calls this directly

Calls 2

OnTexDeletedFunction · 0.85
ClearMethod · 0.45

Tested by

no test coverage detected