gl: Fix crash when launching multiple games with MSAA enabled

This commit is contained in:
kd-11 2025-02-09 17:33:40 +03:00 committed by kd-11
parent 0d4f3cf0a5
commit 485927ed0d
4 changed files with 12 additions and 1 deletions

View file

@ -10,6 +10,14 @@ namespace gl
std::unordered_map<GLuint, std::unique_ptr<ds_resolve_pass_base>> g_depth_resolvers;
std::unordered_map<GLuint, std::unique_ptr<ds_resolve_pass_base>> g_depth_unresolvers;
void clear_resolve_helpers()
{
g_resolve_helpers.clear();
g_unresolve_helpers.clear();
g_depth_resolvers.clear();
g_depth_unresolvers.clear();
}
static const char* get_format_string(gl::texture::internal_format format)
{
switch (format)