From 6b095bde05d4692cc9bf1b620b763f60edd2ec62 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Mon, 14 Mar 2022 20:29:25 +0100
Subject: [PATCH] (Windows) Fixed some compiler errors.

---
 es-core/src/utils/PlatformUtil.cpp | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/es-core/src/utils/PlatformUtil.cpp b/es-core/src/utils/PlatformUtil.cpp
index 8a20e52ab..1f549c192 100644
--- a/es-core/src/utils/PlatformUtil.cpp
+++ b/es-core/src/utils/PlatformUtil.cpp
@@ -12,6 +12,8 @@
 #include "Window.h"
 #if defined(_WIN64)
 #include "utils/StringUtil.h"
+#include <SDL2/SDL.h>
+#include <SDL2/SDL_opengl.h>
 #endif
 
 #include <SDL2/SDL_events.h>
@@ -181,16 +183,16 @@ namespace Utils
                 // There is sometimes a white flash the first time an emulator is started during the
                 // program session and a white single-pixel line will be visible at the bottom of
                 // the screen while the game is loading. But it's at least a tolerable workaround.
-                SDL_GetWindowSize(Renderer::getSDLWindow(), &width, &height);
-                SDL_SetWindowSize(Renderer::getSDLWindow(), width, height - 1);
+                SDL_GetWindowSize(Renderer::getInstance()->getSDLWindow(), &width, &height);
+                SDL_SetWindowSize(Renderer::getInstance()->getSDLWindow(), width, height - 1);
                 SDL_Delay(100);
                 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-                Renderer::swapBuffers();
+                Renderer::getInstance()->swapBuffers();
 
                 WaitForSingleObject(pi.hThread, INFINITE);
                 WaitForSingleObject(pi.hProcess, INFINITE);
 
-                SDL_SetWindowSize(Renderer::getSDLWindow(), width, height);
+                SDL_SetWindowSize(Renderer::getInstance()->getSDLWindow(), width, height);
             }
 
             // If the return value is false, then something failed.