tdf#149068 reject OpenGL versions that don't support glGenVertexArrays
commita37577f9fd74c5f84ee7d24adca3755b6f26a55c
authorCaolán McNamara <caolanm@redhat.com>
Sun, 15 May 2022 15:07:57 +0000 (15 16:07 +0100)
committerMichael Stahl <michael.stahl@allotropia.de>
Mon, 23 May 2022 10:46:21 +0000 (23 12:46 +0200)
tree35b54ca548ce2f40c12abc144a4fa86f3e1099d7
parentdef9e701c83e7283b3580490c881a5b692c4ec12
tdf#149068 reject OpenGL versions that don't support glGenVertexArrays

use a throwaway toplevel to figure that out, because if the current
window is used then gtk will always call glGenVertexArrays on it due
to the creation of a GLContext which is the problem we want to avoid.

Change-Id: I40ccc48b5ed2d9fd99d3c242244847c8448c3803
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134350
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit da50382b366d6f3de778d8a52136cd812ef5b751)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134628
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
vcl/unx/gtk3/gtkinst.cxx