Use libepoxy for OpenGL ES

It supports OpenGL ES contexts as well as desktop OpenGL
This commit is contained in:
WaluigiWare64 2021-01-30 13:54:38 +00:00 committed by Rayyan Ansari
parent ea00d69866
commit 23c6823393
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ if (ENABLE_OGLRENDERER)
elseif (APPLE) elseif (APPLE)
target_link_libraries(core ${EPOXY_LIBRARIES}) target_link_libraries(core ${EPOXY_LIBRARIES})
else() else()
target_link_libraries(core rt GLESv2) target_link_libraries(core rt ${EPOXY_LIBRARIES})
endif() endif()
else() else()
if (WIN32) if (WIN32)

View File

@ -22,7 +22,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <GLES3/gl32.h> #include <epoxy/gl.h>
#include "Platform.h" #include "Platform.h"