Backends: OpenGL3: fixed build for WebGL, ES2/ES3. (#2186, #3998, #3146, #3143, #8640)

Amend fe33b77
diff --git a/backends/imgui_impl_opengl3.cpp b/backends/imgui_impl_opengl3.cpp
index 568067c..d9cf487 100644
--- a/backends/imgui_impl_opengl3.cpp
+++ b/backends/imgui_impl_opengl3.cpp
@@ -192,6 +192,10 @@
 #define IMGUI_IMPL_OPENGL_LOADER_IMGL3W
 #include "imgui_impl_opengl3_loader.h"
 #endif
+#ifndef GL_LOWER_LEFT
+#define GL_LOWER_LEFT 0x8CA1
+#define GL_UPPER_LEFT 0x8CA2
+#endif
 
 // Vertex arrays are not supported on ES2/WebGL1 unless Emscripten which uses an extension
 #ifndef IMGUI_IMPL_OPENGL_ES2
@@ -529,7 +533,7 @@
     if (bd->ClipOriginCurrent == 0)
     {
         bd->ClipOriginCurrent = GL_LOWER_LEFT;
-#if defined(GL_CLIP_ORIGIN)
+#ifdef GL_CLIP_ORIGIN
         if (bd->HasClipOrigin)
             glGetIntegerv(GL_CLIP_ORIGIN, (GLint*)&bd->ClipOriginCurrent);
 #endif