Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3.2k
    • Issues 3.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1k
    • Merge requests 1k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Issues
  • #307
Closed
Open
Issue created Sep 18, 2019 by Bugzilla Migration User@bugzilla-migration

Swrast doesn't really know whether a Framebuffer object is bound

Submitted by Benoit Jacob

Assigned to mes..@..op.org

Link to original bug (#38312)

Description

This comes from https://bugzilla.mozilla.org/show_bug.cgi?id=659842#c64

This seems to be a swrast bug, but I didn't find the bugzilla component for it.

I have code like this:

glBindFramebuffer(...some arguments...); glFramebufferRenderbuffer(...some arguments...); GLenum error = glGetError(); if (error != GL_NO_ERROR) exit(1); // no GL error at this point GLint framebuffer; glGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, &framebuffer); if (!framebuffer) printf("WTF???\n");

The bug is that the WTF line is reached. Since glBindFramebuffer and glFramebufferRenderbuffer succeeded, for sure we have a FBO bound. So it's a bug that glGetIntegerv(LOCAL_GL_FRAMEBUFFER_BINDING, &result) returns 0.

This is only confirmed with the swrast driver.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking