LWJGL
May 23, 2013, 01:28:29 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL is now using GitHub
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [CLOSED] Removing 16-element limitation of glGetXXX methods  (Read 730 times)
ra4king
Newbie
*
Posts: 33


I'm the King!


WWW
« on: May 28, 2012, 23: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)?
Logged

-Roi
princec
Nerdus Imperius
*****
Posts: 1870



WWW
« Reply #1 on: May 29, 2012, 00: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 Smiley Perhaps you could keep your attention on the broken mouse delta APIs in Windows Wink

Cas Smiley
Logged

ra4king
Newbie
*
Posts: 33


I'm the King!


WWW
« Reply #2 on: May 29, 2012, 01: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 Sad

So go and moan about something else Smiley Perhaps you could keep your attention on the broken mouse delta APIs in Windows Wink
Hehehe that's still an issue?! Grin
Logged

-Roi
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!