diff --git a/src/rlgl.h b/src/rlgl.h index 9221de1070ef..f4132884da10 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -816,9 +816,13 @@ RLAPI void rlLoadDrawQuad(void); // Load and draw a quad #endif #if defined(PLATFORM_IOS) + // These required macros should be defined in Xcode #ifndef GRAPHICS_API_OPENGL_ES3 #error "GRAPHICS_API_OPENGL_ES3 required on PLATFORM_IOS" #endif + #ifndef GL_GLEXT_PROTOTYPES + #error "GL_GLEXT_PROTOTYPES required on PLATFORM_IOS" + #endif #include "libGLESv2/GLES/glext.h" #include "libGLESv2/GLES2/gl2.h" #include "libGLESv2/GLES2/gl2ext.h" // OpenGL ES 2.0 extensions library