Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • L libglvnd
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • glvnd
  • libglvnd
  • Merge requests
  • !273

GLdispatch: Return an error when glGetError is called without a context

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Kyle Brenneman requested to merge kbrenneman/libglvnd:glGetError-without-context into master Oct 18, 2022
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

When there isn't a current context, libglvnd will (try to) plug in a dispatch table that sends everything to no-op stubs which do nothing and return zero. That's fine for most things, but glGetError ought to return a non-zero value, since zero is GL_NO_ERROR.

This adds a special case to gen_gldispatch_mapi.py so that glGetError will return GL_INVALID_OPERATION.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: glGetError-without-context