From 29edb4e0327548f52937fe5dfad76d15775ddf5d Mon Sep 17 00:00:00 2001 From: superp00t Date: Sun, 26 Nov 2023 15:38:57 -0500 Subject: [PATCH] fix(gx): return fallback sample count --- src/gx/glsdl/GLSDLContext.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gx/glsdl/GLSDLContext.cpp b/src/gx/glsdl/GLSDLContext.cpp index 23a94fc..7750604 100644 --- a/src/gx/glsdl/GLSDLContext.cpp +++ b/src/gx/glsdl/GLSDLContext.cpp @@ -43,6 +43,8 @@ void GLSDLContext::MakeCurrent(GLSDLWindow* window) { int32_t GLSDLContext::GetSampleCount() { int samples; auto status = SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &samples); - BLIZZARD_ASSERT(status == 0); + if (status != 0) { + return 1; + } return static_cast(samples); }