mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
fix(gx): return fallback sample count
This commit is contained in:
parent
697f3ca9f6
commit
29edb4e032
1 changed files with 3 additions and 1 deletions
|
|
@ -43,6 +43,8 @@ void GLSDLContext::MakeCurrent(GLSDLWindow* window) {
|
||||||
int32_t GLSDLContext::GetSampleCount() {
|
int32_t GLSDLContext::GetSampleCount() {
|
||||||
int samples;
|
int samples;
|
||||||
auto status = SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &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);
|
return static_cast<int32_t>(samples);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue