lime icon indicating copy to clipboard operation
lime copied to clipboard

mis-handling of string sizes in lime_gl_get_active_attrib

Open mgambrell opened this issue 6 years ago • 0 comments

https://github.com/openfl/lime/blob/758c5e2761b1f58f898e135fb00bebfd6b5a1cf6/project/src/graphics/opengl/OpenGLBindings.cpp#L1681

This function (and the C function following it) are full of misconceptions for how the buffer size should be managed. The problems begin in the line above (where a symbolic constant is used as a maximum buffer size which should be got with glGetProgram instead) but the function is full of problems as far as I can tell.

I can't suggest fixes because I can't test them readily. It's a long story.

mgambrell avatar May 20 '19 02:05 mgambrell