title: GLSL C style numeric cast
body: <p>I am experiencing the following issue.I have two shaders (completely unrelated) which do casts to int and to float but in a different manner.</p>
  
  <p>Cast example from Shader #1 (int to float):</p>
  
  <pre><code> color = vec4(float(fragment_count) / float(MAX_FRAGMENTS));
  </code></pre>
  
  <p>Cast example from Shader #2 (float to int):</p>
  
  <pre><code>  int abNumFrag=(int)imageLoad(abufferCounterImg, coords).r;
  </code></pre>
  
  <p>The first shader compiles fine but the second is thrown an error:</p>
  
  <p><strong>"OpenGL doesn't allow C-syle casts"</strong></p>
  
  <p>Unless I enable the extension : #extension GL_NV_gpu_shader5 : enable</p>
  
  <p>Isn't  (int)someFloat  the same as casting int(someFloat) ? </p>