fix(gx): return fallback sample count

This commit is contained in:
superp00t 2023-11-26 15:38:57 -05:00
parent 697f3ca9f6
commit 29edb4e032

View File

@ -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<int32_t>(samples);
}