|
|
@ -803,7 +803,7 @@ RLAPI void rlLoadDrawQuad(void); // Load and draw a quad |
|
|
|
#if defined(GRAPHICS_API_OPENGL_ES2) |
|
|
|
// NOTE: OpenGL ES 2.0 can be enabled on PLATFORM_DESKTOP, |
|
|
|
// in that case, functions are loaded from a custom glad for OpenGL ES 2.0 |
|
|
|
#if defined(PLATFORM_DESKTOP) |
|
|
|
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_DESKTOP_SDL) |
|
|
|
#define GLAD_GLES2_IMPLEMENTATION |
|
|
|
#include "external/glad_gles2.h" |
|
|
|
#else |
|
|
@ -2248,7 +2248,7 @@ void rlLoadExtensions(void *loader) |
|
|
|
// RLGL.ExtSupported.maxAnisotropyLevel |
|
|
|
#elif defined(GRAPHICS_API_OPENGL_ES2) |
|
|
|
|
|
|
|
#if defined(PLATFORM_DESKTOP) |
|
|
|
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_DESKTOP_SDL) |
|
|
|
// TODO: Support OpenGL ES 3.0 |
|
|
|
if (gladLoadGLES2((GLADloadfunc)loader) == 0) TRACELOG(RL_LOG_WARNING, "GLAD: Cannot load OpenGL ES2.0 functions"); |
|
|
|
else TRACELOG(RL_LOG_INFO, "GLAD: OpenGL ES 2.0 loaded successfully"); |
|
|
|