summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-04-25 13:32:24 +0200
committerraysan5 <[email protected]>2021-04-25 13:32:24 +0200
commit0e2845ec26950bf89b525a8a20632e0435ad45cb (patch)
treef4a646301dbb215dfb047b59b4e54987ec9ad343
parentc4041043f51d6e00d2db7d4a3f81ca4e56e87344 (diff)
downloadraylib-0e2845ec26950bf89b525a8a20632e0435ad45cb.tar.gz
raylib-0e2845ec26950bf89b525a8a20632e0435ad45cb.zip
Review OpenGL 1.1 building #1732
It works compiling with MinGW
-rw-r--r--src/rlgl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index 6d6218ec..e67d743d 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -1830,6 +1830,7 @@ void rlLoadExtensions(void *loader)
TRACELOG(LOG_INFO, " > Version: %s", glGetString(GL_VERSION));
TRACELOG(LOG_INFO, " > GLSL: %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
// NOTE: Anisotropy levels capability is an extension
#ifndef GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
@@ -1882,7 +1883,9 @@ void rlLoadExtensions(void *loader)
if (RLGL.ExtSupported.texCompETC2) TRACELOG(LOG_INFO, "GL: ETC2/EAC compressed textures supported");
if (RLGL.ExtSupported.texCompPVRT) TRACELOG(LOG_INFO, "GL: PVRT compressed textures supported");
if (RLGL.ExtSupported.texCompASTC) TRACELOG(LOG_INFO, "GL: ASTC compressed textures supported");
-#endif
+#endif // SUPPORT_GL_DETAILS_INFO
+
+#endif // GRAPHICS_API_OPENGL_33 || GRAPHICS_API_OPENGL_ES2
}
// Returns current OpenGL version