aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-02-07 11:35:36 +0100
committerraysan5 <raysan5@gmail.com>2016-02-07 11:35:36 +0100
commitc00062655fcb7de99164a4f5fb0babb7696fbc67 (patch)
tree68afa3963bb6d77768baedab5002812ca85ee9c2
parent4ad375a3783472b8629387d45fb90619115c973a (diff)
downloadraylib-c00062655fcb7de99164a4f5fb0babb7696fbc67.tar.gz
raylib-c00062655fcb7de99164a4f5fb0babb7696fbc67.zip
GLAD only available on PLATFORM_DESKTOP
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index c872d43e..2996033a 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1427,6 +1427,7 @@ static void InitDisplay(int width, int height)
glfwMakeContextCurrent(window);
+#if defined(PLATFORM_DESKTOP)
// Extensions initialization for OpenGL 3.3
if (rlGetVersion() == OPENGL_33)
{
@@ -1458,6 +1459,7 @@ static void InitDisplay(int width, int height)
//if (GLAD_GL_ARB_vertex_array_object) // Use GL_ARB_vertex_array_object
#endif
}
+#endif
// Enables GPU v-sync, so frames are not limited to screen refresh rate (60Hz -> 60 FPS)
// If not set, swap interval uses GPU v-sync configuration