Page 1 of 1

Draw Normals as Lines error

Posted: Fri Feb 16, 2024 8:09 pm
by lweidner
Hi, I'm trying the "draw normals as lines" function for the first time and have been getting an error which causes a crash.
With v2.13.0 (Feb14), I compute normals on a small cloud, then click the "draw" check box.

The error that pops up is "ERROR: 3:7: 'varying' : cannot be used with a block or a structure"
followed by
"[ccGLWindow::draw3D] OpenGL error: stack underflow"
then, CC crashes.

Of the two computers I tested, it only happens on my laptop with integrated Intel Iris Graphics. Desktop with dedicated AMD GPU works fine.

Re: Draw Normals as Lines error

Posted: Sat Feb 17, 2024 8:10 am
by daniel
Ah, yes, I forgot to add a safety check: some drivers don't support the shader version used to do it. I'll add a clearer message in the next release.

Re: Draw Normals as Lines error

Posted: Sat Feb 17, 2024 8:31 am
by daniel
Hum, it doesn't look straightforward to test the right extension that should be supported... so maybe we won't be able to improve this error message!