patriciogonzalezvivo / glslViewer

Console-based GLSL Sandbox for 2D/3D shaders
BSD 3-Clause "New" or "Revised" License
4.57k stars 352 forks source link

Difficulty Recovering from Syntax Errors #312

Open mtmckenna opened 1 year ago

mtmckenna commented 1 year ago

Not totally sure how to describe this so posting a video below to show what I'm seeing in case that helps.

If I accidentally type in a syntax error, glslViewer will helpfully show the error message. If I remove the error, I am then shown a different error message that doesn't make sense to me in the context of the shader. Strangely, if I then add back in another syntax error and then remove the error again, the shader runs just fine and I'm back in business (the video probably is a clearer explanation).

My expectation is that the shader should have worked after removing the syntax error the first time. Do you know if I'm doing something wrong or if there's maybe something else going on?

https://user-images.githubusercontent.com/361430/202370298-17f4896b-a88f-47ef-9fcd-06454d90d06b.mov

Running Mac OSX 12.6.

Thank you!!

TiborUdvari commented 1 year ago

I have the same issue on version 3.1.1 running MacOS 12.4

patriciogonzalezvivo commented 1 year ago

Oh interesting. I will take a look. Seems like the magenta shader used to display the error gets stuck some where. Thanks for reporting it.