Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

SDL_RenderDrawLines ERROR :GL_INVALID_OPERATION : glDrawArrays: attempt to access out of range vertices in attribute 1 #134

@DarthGandalf

Description

@DarthGandalf

I'm using SDL_RenderDrawLines.

I cannot reproduce the issue myself, but one of users sees that message in browser console, and the lines are not drawn.

https://www.asokolov.org/advent-of-code/2020/day12.html is the deployed version of it.

screenshot

However, sometimes the lines are drawn correctly, as can be seen here. First it shows correctly, then just stops. With a different input (e.g. this one) it stops drawing at a different point.

The user tried it with Chrome and Firefox, on Windows, with the same result.

This workaround helps: SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software");

Source code:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions