Skip to content

Commit

Permalink
Bump impeller-cmake to 25002cdd90333f9d2da0cb1df3fd635bdb7cfc1f
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero committed Oct 11, 2023
1 parent c228682 commit 02b40b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/main_gles.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <iostream>
#include <memory>

#include "fml/closure.h"
#include "fml/mapping.h"
#include "imgui/backends/imgui_impl_glfw.h"
#include "imgui/imgui.h"
Expand Down Expand Up @@ -77,14 +78,14 @@ int main() {

::glfwDefaultWindowHints();

#ifdef __APPLE__
#ifdef FML_OS_MACOSX
// ES Profiles are not supported on Mac.
::glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API);
#else // __APPLE__
#else // FML_OS_MACOSX
::glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
::glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
::glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
#endif // __APPLE__
#endif // FML_OS_MACOSX
//::glfwWindowHint(GLFW_SRGB_CAPABLE, GLFW_TRUE);
::glfwWindowHint(GLFW_RED_BITS, 8);
::glfwWindowHint(GLFW_GREEN_BITS, 8);
Expand Down
2 changes: 1 addition & 1 deletion third_party/impeller-cmake

0 comments on commit 02b40b2

Please sign in to comment.