Commit 56474df1 authored by Alexandru Croitor's avatar Alexandru Croitor Committed by Allan Sandfeld Jensen
Browse files

[macOS] Fix creation of shared OpenGL 3.2 Core contexts


Due to a current issue described in QTBUG-63180, requesting a 3.2 Core
context on macOS will advertise that a 4.1 context was created, even
though that is not the case. Because
RenderWidgetHostViewQtDelegateWidget will read the OpenGL major version
from the global shared context and then apply that to its own context,
this will cause a failure to create a shared context (one is 3.2, and
the other is 4.1).

The current workaround is to create the context with the default format
version, instead of the global shared one. This way all the requested
versions will be consitent.

Task-number: QTBUG-60605
Change-Id: I470c43ca9d15cb3887a0ed968b57c62518a33a72
Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
parent 6d7df67a
Branches
Tags
No related merge requests found
Showing with 19 additions and 3 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment