O'Reilly logo
  • Musharraf Azeem thinks this is interesting:

glGetUniformBlockIndex

From

Cover of OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition

Note

Uniforms not contained in an explicitly specified uniform block (ie. they are simply global variables outside any function), they are implicitly contained in a default uniform block which has a block index of -1.