GLAD only available on PLATFORM_DESKTOP
This commit is contained in:
parent
4ad375a378
commit
c00062655f
1 changed files with 2 additions and 0 deletions
|
@ -1427,6 +1427,7 @@ static void InitDisplay(int width, int height)
|
||||||
|
|
||||||
glfwMakeContextCurrent(window);
|
glfwMakeContextCurrent(window);
|
||||||
|
|
||||||
|
#if defined(PLATFORM_DESKTOP)
|
||||||
// Extensions initialization for OpenGL 3.3
|
// Extensions initialization for OpenGL 3.3
|
||||||
if (rlGetVersion() == OPENGL_33)
|
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
|
//if (GLAD_GL_ARB_vertex_array_object) // Use GL_ARB_vertex_array_object
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Enables GPU v-sync, so frames are not limited to screen refresh rate (60Hz -> 60 FPS)
|
// 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
|
// If not set, swap interval uses GPU v-sync configuration
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue