Skip to content

Commit

Permalink
A better default that saves the whopping amount of 28KB on the final …
Browse files Browse the repository at this point in the history
…bundle (#4177)
  • Loading branch information
lzralbu committed Jul 22, 2024
1 parent f1f0886 commit 30f9ca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ endif()
if (${PLATFORM} MATCHES "Web")
target_link_options(raylib PUBLIC "-sUSE_GLFW=3")
if(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3")
target_link_options(raylib PUBLIC "-sFULL_ES3")
target_link_options(raylib PUBLIC "-sMIN_WEBGL_VERSION=2")
target_link_options(raylib PUBLIC "-sMAX_WEBGL_VERSION=2")
endif()
endif()

Expand Down

0 comments on commit 30f9ca7

Please sign in to comment.