Skip to content

Warn about inappropriate usage of glVertexAttribFormat #2013

@nicebyte

Description

@nicebyte

Description

When specifying vertex attribute format for integer attributes, it is a common mistake to call glVertexAttribFormat instead of glVertexAttribIFormat.

Currently, RenderDoc simply displays the values of attributes specified in this erroneous way without any indication that something might be wrong, even though the application might be exhibiting incorrect behaviour.

It can make this type of bug hard to spot. Theoretically, it should be possible to detect this situation and warn the user about it, though I am not sure what might be the best way to surface this information to the user (stick an error message instead of the attribute value perhaps?)

Environment

  • RenderDoc version: 1.9
  • Operating System: Windows, or any other OS supporting OpenGL
  • Graphics API: OpenGL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions