I’m using the GL11 version of vertex arrays. (As shown in the VBO/VAO tutorial in the articles board)
I am aware that it is deprecated, and will attempt to either use OGL3 Vertex Arrays, or switch it all to VBOs (not sure if that is a good idea for performance.)
I’m not aware that it is deprecated :persecutioncomplex: searches up on google I looked at the LWJGL GL11 API, and there is nothing about GL11 being deprecated :clue:.
Even if the game is using the function incorrectly, I still wouldn’t expect the native error, since LWJGL is supposed to check ranges. glDrawArrays is a complicated function though, so it probably isn’t possible to do every check. Debugging it would probably be easier with source – doable without, but probably not worth the trouble.
I wouldn’t chalk it up to deprecated GL paths – since these testers haven’t run into issues with vertex arrays before, it seems more likely that you are doing something wrong. Which means that when you go to refactor to VBOs/shaders, you may end up with the same error. Maybe post some of your rendering code?
Vertex arrays are deprecated but they should still work fine if you are not requesting core profile.
I know learning OpenGL is a good idea…
But writing applications for OpenGL 3 is certainly not a good idea! Many people out there still have low-end or old hardware and are restricted to OpenGL 2.1 or even lower.
So to get most people playing your game I suggest targeting OpenGL 2.1 hardware, since it seems to be the best balance between being not deprecated and being usable for everyone.
I haven’t got some of those links, but minecraft, steam and WolfireGames have made stats about the user’s hardware. It showed that at the moment only about 50% of all the users have OpenGL 3+ cards (and drivers) and about 80-90% have OpenGL 2.1+ hardware. I myself got my OGL 4.2 hardware this summer. Before I had OpenGL 2.1 hardware.
davedes for example still has 2.1 hardware. :point:
I suggest learning the OpenGL 3 specification, but not really using it.
Doesn’t break it down by OpenGL version, but you can expand the list of GPUs, and it overwhelmingly shows OpenGL 3+ capable cards. Consider that Steam installations already tend to bias toward higher-spec machines (I don’t have Steam on my crappy laptop) and that the survey doesn’t include specifics on Apple hardware at all, and 50% doesn’t sound implausible.
If your game’s free, then frankly you probably shouldn’t need to care. Learn and use whatever helps you the most.