Skip to content

INVALID-OPERATION from END when using gl:vertex-attrib #116

@3b

Description

@3b

gl:vertex-attrib uses an extension function, and those are queried on demand, so if the first call happens within a BEGIN/END pair it might cause END to error.

Not sure cl-opengl can do anything about that transparently, but possibly could add a check for querying an extension pointer within BEGIN/END and give a more informative error in that case? Shouldn't hurt performance much since it would only need to check on first call of each ext function when it is doing extra work anyway.

User code can just call gl:vertex-attrib at some point during initialization to make sure the function is loaded outside BEGIN/END.

Also applies to gl:multi-tex-coord, not sure any other ext functions are allowed within BEGIN/END

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