Skip to content

Commit 0e2845e

Browse files
committed
Review OpenGL 1.1 building #1732
It works compiling with MinGW
1 parent c404104 commit 0e2845e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/rlgl.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1830,6 +1830,7 @@ void rlLoadExtensions(void *loader)
18301830
TRACELOG(LOG_INFO, " > Version: %s", glGetString(GL_VERSION));
18311831
TRACELOG(LOG_INFO, " > GLSL: %s", glGetString(GL_SHADING_LANGUAGE_VERSION));
18321832

1833+
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
18331834
// NOTE: Anisotropy levels capability is an extension
18341835
#ifndef GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
18351836
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
@@ -1882,7 +1883,9 @@ void rlLoadExtensions(void *loader)
18821883
if (RLGL.ExtSupported.texCompETC2) TRACELOG(LOG_INFO, "GL: ETC2/EAC compressed textures supported");
18831884
if (RLGL.ExtSupported.texCompPVRT) TRACELOG(LOG_INFO, "GL: PVRT compressed textures supported");
18841885
if (RLGL.ExtSupported.texCompASTC) TRACELOG(LOG_INFO, "GL: ASTC compressed textures supported");
1885-
#endif
1886+
#endif // SUPPORT_GL_DETAILS_INFO
1887+
1888+
#endif // GRAPHICS_API_OPENGL_33 || GRAPHICS_API_OPENGL_ES2
18861889
}
18871890

18881891
// Returns current OpenGL version

0 commit comments

Comments
 (0)