Hello Guest

Mistake with glProgramUniform3fv

  • 2 Replies
  • 5148 Views
Mistake with glProgramUniform3fv
« on: December 04, 2015, 00:19:49 »
Hello there I was working on my shader classes and came across a mistake in the implementation of glProgramUniform3fv(int, int, FloatBuffer). After sifting for bugs in my own code I found that glProgramUniform3fv was dividing the buffer size by 9 when passing it off to the native function. So I checked glUniform3fv(int, Floatbuffer), which was working for me, and found out it was dividing the buffer size by 3. Small mistake but it would explain why I couldn't upload any data to the uniform when using glProgramUniform3fv.

Re: Mistake with glProgramUniform3fv
« Reply #1 on: December 04, 2015, 00:23:21 »
There also appears to be a similar issue with the ByteBuffer variant as it does a buffer check and scales the count by 9 instead of 3

*

Offline spasi

  • *****
  • 2261
    • WebHotelier
Re: Mistake with glProgramUniform3fv
« Reply #2 on: December 04, 2015, 12:05:59 »
Thanks for reporting this! The fix is in nightly build 3.0.0 #5.