You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
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");
Hey, I'm that user and I'd like to point out that your input didn't work either on the website (same issue, shows for a bit then stops, except this time it shows even less). The click here (?renderer=software) fixes it for both your and my input. Seems that the glitch occurs regardless of the input on the normal renderer.
Okay, I can reproduce on Windows, but not Linux (browser doesn't seem to matter).
Looks like there's a bug in the GLES renderer. Attribute 1 is texture coordinates, which should be disabled when rendering lines. Something is causing the state to get a bit out of sync, resulting in that not happening.
This patch seems to fix it, but don't know how correct it is... (Don't really know the renderer code, usually stick to the backend)
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.
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:
The text was updated successfully, but these errors were encountered: