glUniform bool

// Assuming you have a shader program with a boolean uniform variable named 'myBool'
GLuint programID; // Replace with the actual ID of your shader program
GLint myBoolLocation = glGetUniformLocation(programID, "myBool");

// Set the boolean value for the uniform variable
GLboolean myBoolValue = GL_TRUE; // Replace with your desired boolean value
glUniform1i(myBoolLocation, myBoolValue);

// Use the shader program with the updated uniform value
glUseProgram(programID);