Skip to content

Bump glfw from 3.2 to 3.3 #18729

@coderedart

Description

@coderedart

Glfw support is missing content scale option.
eg: glfwGetWindowContentScale

This causes glfwGetWindowSize and glfwGetFramebufferSize to return the same size even on platforms with scale != 1.0. The same problem doesn't exist with sdl2 as upstream sdl2 uses emscripten_get_device_pixel_ratio and deals with this itself.

This glfw problem makes the canvas really blurry on hidpi screens due to the mismatch of raw pixels and canvas pixels.

Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.26-git (8eaf19f)
clang version 16.0.0 (/srcdest/llvm-project f81f0cb75a2808a67d2662f044ad07628fc9d900)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /opt/emscripten-llvm/bin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions