fix: Web version not starting due to unsupported texture multisampling

This commit is contained in:
WerWolv
2024-05-02 09:40:39 +02:00
parent 964a2e990e
commit 4eba620bee

View File

@@ -68,6 +68,11 @@ namespace ImGuiExt {
if (filter == Texture::Filter::Nearest)
return texture;
// WebGL doesn't support multisampling
#if defined(OS_WEB)
return texture;
#endif
constexpr static auto SampleCount = 8;
// Generate renderbuffer