diff options
| author | Ray <[email protected]> | 2021-04-28 23:57:46 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-04-28 23:57:46 +0200 |
| commit | ffadeeeb8467d7df2ad35ccc5504268f0abffb3d (patch) | |
| tree | 6853d128be4e66c64a228062cde880977a419d22 /src/core.c | |
| parent | f516f4099b6d23c41a8e3aed1a9ee699740eef4e (diff) | |
| download | raylib-ffadeeeb8467d7df2ad35ccc5504268f0abffb3d.tar.gz raylib-ffadeeeb8467d7df2ad35ccc5504268f0abffb3d.zip | |
Decoupling rlgl from platform layer
Now rlgl only depends on OpenGL and it's completely decoupled from platform layer libraries (EGL)
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -226,7 +226,7 @@ #include <android_native_app_glue.h> // Defines basic app state struct and manages activity #include <EGL/egl.h> // Native platform windowing system interface - //#include <GLES2/gl2.h> // OpenGL ES 2.0 library (not required in this module) + //#include <GLES2/gl2.h> // 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) |
