Hello Guest

[CLOSED] Removing 16-element limitation of glGetXXX methods

  • 2 Replies
  • 3705 Views
*

Offline ra4king

  • **
  • 58
  • I'm the King!
    • Roi's Website
Forcing us to make 16-element buffers if we only wanted 2 elements is kinda dumb.

I understand this is in place to avoid buffer overflow, but why can't you just add a size parameter to nglGetXXXv so it only copies in min(size,elements)?
« Last Edit: May 29, 2012, 06:37:39 by ra4king »
-Roi

*

Offline princec

  • *****
  • 1933
    • Puppygames
Re: [RFE] Removing 16-element limitation of glGetXXX methods
« Reply #1 on: May 29, 2012, 07:33:43 »
Because OpenGL does not have any way to validate the amount of data actually returned from a glGetxx method. So go and moan about something else :) Perhaps you could keep your attention on the broken mouse delta APIs in Windows ;)

Cas :)

*

Offline ra4king

  • **
  • 58
  • I'm the King!
    • Roi's Website
Re: [RFE] Removing 16-element limitation of glGetXXX methods
« Reply #2 on: May 29, 2012, 08:14:49 »
Because OpenGL does not have any way to validate the amount of data actually returned from a glGetxx method.
Oh well that sucks :(

So go and moan about something else :) Perhaps you could keep your attention on the broken mouse delta APIs in Windows ;)
Hehehe that's still an issue?! ;D
-Roi