mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 11:30:09 +03:00
fix(gx): return fallback sample count
This commit is contained in:
parent
697f3ca9f6
commit
29edb4e032
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user