Commit graph

7 commits

Author SHA1 Message Date
Simon Hausmann
3a1817de3f Skia: Make it possible to explicitly select the OpenGL backend of Skia
When opting into the Skia renderer, we default to metal on macOS and D3D on Windows.
However if you want to develop a cross-platform application with Skia and
for example rely on OpenGL to be able to implement an OpenGL underlay or overlay,
then we need the ability to explicitly opt into skia's GL renderer.

cc #1445
2022-09-05 14:07:27 +02:00
Olivier Goffart
3f1324cc61 Allow to run the software backend without the femtovg backend 2022-09-02 16:38:35 +02:00
Simon Hausmann
4014ff8517 Revert "winit: Simplify GL context creation"
This reverts commit 7f2868b5a0.

This is still causing issues on Windows, as reported by tay64 on
Mattermost. This is a box (no vmware) with an ATI driver.

    Vendor: ATI Technologies Inc.
    Version: 4.6.14761 Core Profile Forward-Compatible Context 21.30.23.04 30.0.13023.4001
2022-08-26 16:49:10 +02:00
Simon Hausmann
7f2868b5a0 winit: Simplify GL context creation
The bug in glutin for creating the GLES context has been fixed, so we can remove the workaround.
2022-08-25 16:49:59 +02:00
Simon Hausmann
a116f58b0c Decouple our femtovg dependency from glutin
This will allow updating glutin without femtovg
2022-08-25 16:49:59 +02:00
Simon Hausmann
9ec6fdc18a winit: fix error messages in console when resizing a window
Make sure the glutin context is current before calling resize.
2022-08-10 09:44:07 +02:00
Simon Hausmann
27bf9348e6 Rename the backend-gl crate into backend-winit 2022-07-26 17:43:51 +02:00
Renamed from internal/backends/gl/glcontext.rs (Browse further)