LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: ra4king on May 29, 2012, 06:05:54

Title: [CLOSED] Removing 16-element limitation of glGetXXX methods
Post by: ra4king on May 29, 2012, 06:05:54
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)?
Title: Re: [RFE] Removing 16-element limitation of glGetXXX methods
Post by: princec 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 :)
Title: Re: [RFE] Removing 16-element limitation of glGetXXX methods
Post by: ra4king on May 29, 2012, 08:14:49
Quote from: princec 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.
Oh well that sucks :(

Quote from: princec on May 29, 2012, 07:33:43
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