title: OpenGL bool uniform?
body: <p>I'm trying to send a boolean to an OpenGL glsl shader.</p>
  
  <p>Currently I have this in the shader:</p>
  
  <pre><code>uniform bool foo;
  </code></pre>
  
  <p>And I use this to set it:</p>
  
  <pre><code>glUniform1i(glGetUniformLocation(shader, "foo"), true);
  </code></pre>
  
  <p>There doesn't seem to be a <code>glUniform1b</code>, so I'm setting it as an integer. This seems to work fine.</p>
  
  <p><strong>Is there any problem with this approach? Is it portable, or could it break on other graphics cards / drivers?</strong> I'm using OpenGL 4.3 at the moment.</p>