haasn / libplacebo

Official mirror of libplacebo
http://libplacebo.org/
GNU Lesser General Public License v2.1
568 stars 72 forks source link

Give priority to GLFW_OPENGL_ES_API over GLFW_OPENGL_API in window_glfw.c #280

Open spedagadi opened 4 months ago

spedagadi commented 4 months ago

Just a suggestion - On ARM boards, the rendering is slow with OpenGL but OpenGL ES is much better and realtime to some extent. In plplay's window_glfw.c, this array https://github.com/haasn/libplacebo/blob/1fd3c7bde7b943fe8985c893310b5269a09b46c5/demos/window_glfw.c#L199 could be adjusted such that the window creation tries all OpenGL ES options first and then tries OpenGL if unsuccessful.