Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,464
    • Issues 1,464
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 246
    • Merge requests 246
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Merge requests
  • !4687

Merged
Created May 04, 2022 by Pablo Correa Gomez@pabloyoyoistaContributor

glcontext: Respect ES API when getting gl version from shared context

  • Overview 72
  • Commits 10
  • Pipelines 19
  • Changes 5
On context realizations where the shared context has been already realized,
the GL version is taken directly from it instead of using the default
values. That can lead to errors when the shared context has been realized
with GL ES, but the api is not respected. In that case, the context will
by default attempt to be realized with GL but the GL ES version, creating
an unexpected discrepancy and leading to creating contexts unsuppoted by
GTK. For example, in the PinePhone GL 3.2 is unsupported, leading to the
creation of a shared GL ES 2.0 context by default. Subsequent contexts
will respect the 2.0 version, but not the ES, attempting to create a
GL 2.0 context. A GL 2.0 context is both unsupported by GTK and buggy
on the PinePhone, leading to crashes after the realization of the context.
Respecting the ES API when it is allowed by the context fixes both
the creation of an unsupported context and crashes experimented on the
PinePhone.

Closes #4763 (closed)

Closes !4570 (closed)

Fixes 48163493

Edited May 24, 2022 by Pablo Correa Gomez
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: gl-api-es-fix