The current signature of Program::get() returns a single integer, but glGetProgramiv() would return three values if GL_COMPUTE_WORK_GROUP_SIZE is passed as pname.
Additionally, the implementation of Program::get() assumes, that glGetProgramiv() writes a single value only, so that the stack will be corrupted if multiple integers are written. As far as I have seen, only GL_COMPUTE_WORK_GROUP_SIZE queries more than one integer.
The current signature of
Program::get()
returns a single integer, butglGetProgramiv()
would return three values ifGL_COMPUTE_WORK_GROUP_SIZE
is passed as pname.Additionally, the implementation of
Program::get()
assumes, thatglGetProgramiv()
writes a single value only, so that the stack will be corrupted if multiple integers are written. As far as I have seen, onlyGL_COMPUTE_WORK_GROUP_SIZE
queries more than one integer.