From ffadeeeb8467d7df2ad35ccc5504268f0abffb3d Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 28 Apr 2021 23:57:46 +0200 Subject: Decoupling rlgl from platform layer Now rlgl only depends on OpenGL and it's completely decoupled from platform layer libraries (EGL) --- src/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index 553662f8..8729ad07 100644 --- a/src/core.c +++ b/src/core.c @@ -226,7 +226,7 @@ #include // Defines basic app state struct and manages activity #include // Native platform windowing system interface - //#include // OpenGL ES 2.0 library (not required in this module) + //#include // OpenGL ES 2.0 library (not required in this module) #endif #if defined(PLATFORM_RPI) || defined(PLATFORM_DRM) @@ -253,13 +253,13 @@ #include "EGL/egl.h" // Native platform windowing system interface #include "EGL/eglext.h" // EGL extensions - #include "GLES2/gl2.h" // OpenGL ES 2.0 library + //#include "GLES2/gl2.h" // OpenGL ES 2.0 library (not required in this module) #endif #if defined(PLATFORM_UWP) #include "EGL/egl.h" // Native platform windowing system interface #include "EGL/eglext.h" // EGL extensions - #include "GLES2/gl2.h" // OpenGL ES 2.0 library + //#include "GLES2/gl2.h" // OpenGL ES 2.0 library (not required in this module) #include "uwp_events.h" // UWP bootstrapping functions #endif @@ -4356,7 +4356,7 @@ static bool InitGraphicsDevice(int width, int height) #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) rlLoadExtensions(glfwGetProcAddress); #else - rlLoadExtensions(NULL); // Uses eglGetProcAddress() internally + rlLoadExtensions(eglGetProcAddress); #endif // Initialize OpenGL context (states and resources) -- cgit v1.2.3