From 4f9737cd23bf38c6c6d6f8a7f72ada354749b982 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Tue, 26 Oct 2021 18:26:00 +0200
Subject: [PATCH] Fixed a compiler warning when building with the GLES
 renderer.

---
 es-core/src/Window.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/es-core/src/Window.cpp b/es-core/src/Window.cpp
index 629872054..39c419136 100644
--- a/es-core/src/Window.cpp
+++ b/es-core/src/Window.cpp
@@ -24,7 +24,9 @@
 #include <algorithm>
 #include <iomanip>
 
+#if defined(USE_OPENGL_21)
 #define CLOCK_BACKGROUND_CREATION false
+#endif
 
 Window::Window()
     : mScreensaver(nullptr)