SDL: Make sure SDL_GL_SetSwapInterval() is only called on the GL path

This commit is contained in:
Henrik Rydgård committed 2024-09-16 12:01:51 +02:00
1 parent 62656b6e6f
commit 41b1165dcd
3 files changed
+10 -3

No files matched your search

+2
View File
@@ -16,6 +16,8 @@ public:
// Returns 0 on success.
int Init(SDL_Window *&window, int x, int y, int w, int h, int mode, std::string *error_message);
bool InitFromRenderThread() override;
void Shutdown() override {}
void ShutdownFromRenderThread() override;