The Return Of ES2 Support
minecraft-pi-reborn/pipeline/head This commit looks good Details
Build / build (push) Successful in 1h43m7s Details

This commit is contained in:
TheBrokenRail 2023-09-07 21:38:14 -04:00
parent 85e3cb6228
commit 9e517f5e60
3 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@ project(media-layer-core-gles-dependencies)
# GLES Compatibility Layer
if(NOT MCPI_HEADLESS_MODE AND MCPI_USE_GLES1_COMPATIBILITY_LAYER)
set(GLES_COMPATIBILITY_LAYER_USE_DEFAULT_INCLUDE_PATH FALSE CACHE BOOL "" FORCE)
set(GLES_COMPATIBILITY_LAYER_USE_ES3 FALSE CACHE BOOL "" FORCE)
set(GLES_COMPATIBILITY_LAYER_USE_SDL FALSE CACHE BOOL "" FORCE)
set(GLES_COMPATIBILITY_LAYER_DEPENDENCY glfw CACHE STRING "" FORCE)
add_subdirectory(gles-compatibility-layer)

@ -1 +1 @@
Subproject commit 3078b267561053af3b590407ef60f8b4beae18bd
Subproject commit 86dadd6644d454b1c5460d7110a89c54cbdd2507

View File

@ -577,7 +577,7 @@ void SDL_WM_SetCaption(const char *title, __attribute__((unused)) const char *ic
// Create OpenGL ES Context
glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
#ifdef MCPI_USE_GLES1_COMPATIBILITY_LAYER
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
#else
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 1);