mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-09 16:08:23 +03:00
fix(gx): return fallback sample count
This commit is contained in:
1 parent
697f3ca9f6
commit
29edb4e032
1 file changed
+3
-1
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user