scrcpy/app
Yan c083a7cc90 Force OpenGL Core Profile context on macOS
By default, SDL creates an OpenGL 2.1 context on macOS for an OpenGL
renderer. As a consequence, mipmapping is not supported.

Force to use a core profile context, to get a higher version.

Before:

    INFO: Renderer: opengl
    INFO: OpenGL version: 2.1 NVIDIA-14.0.32 355.11.11.10.10.143
    WARN: Trilinear filtering disabled (OpenGL 3.0+ or ES 2.0+ required)

After:

    INFO: Renderer: opengl
    DEBUG: Creating OpenGL Core Profile context
    INFO: OpenGL version: 4.1 NVIDIA-14.0.32 355.11.11.10.10.143
    INFO: Trilinear filtering enabled

when running with:

    scrcpy --verbosity=debug --render-driver=opengl

Note: Since SDL_CreateRenderer() causes a fallback to OpenGL 2.1, the
profile and version attributes have to be set and the context created
_after_.

PR #3895 <https://github.com/Genymobile/scrcpy/pull/3895>

Signed-off-by: Romain Vimont <rom@rom1v.com>
2023-04-12 21:26:24 +02:00
..
data Fix pause message 2023-03-16 18:21:00 +01:00
prebuilt-deps Upgrade platform-tools (34.0.1) for Windows 2023-03-12 02:04:58 +01:00
src Force OpenGL Core Profile context on macOS 2023-04-12 21:26:24 +02:00
tests Fix "ip route" parsing 2023-04-02 19:30:23 +02:00
meson.build Extract sc_display from sc_screen 2023-04-06 19:48:26 +02:00
scrcpy-windows.manifest Set DPI awareness for Windows 2021-12-20 19:13:02 +01:00
scrcpy-windows.rc Bump version to 2.0 2023-03-12 02:05:37 +01:00
scrcpy.1 Add missing --no-audio option in manpage 2023-04-10 19:30:04 +02:00