| 1052 | } |
| 1053 | |
| 1054 | void 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 |
nothing calls this directly
no test coverage detected