On a related note, I got bloom up and running: http://imgur.com/9H0vS56

Moderator: Graf Zahl
GL_RGBA16F is from EXT_packed_float and GL_DEPTH24_STENCIL8 is from EXT_packed_depth_stencil.dpJudas wrote:the code also relies on the GL_RGBA16F texture format and GL_DEPTH24_STENCIL8 - both of which I'm not exactly sure when they were introduced.
If you can make pure OpenGL 3.2 Core Profile renderer as fast as existing immediate mode one, that will be really awesome. It will be great even if it will use OpenGL 4.1 Core Profile. Also, any mod that uses own shaders should be checked but it's probably a minor problem.dpJudas wrote: Why does GZDoom only use OpenGL 2.1 on Mac? My MacBook Pro (Mid 2014) reports supporting version 4.1. My old Mac Mini (5+ years old by now) also supported some version of 3.x I'm pretty sure.
_mental_ wrote:If you can make pure OpenGL 3.2 Core Profile renderer as fast as existing immediate mode one, that will be really awesome. It will be great even if it will use OpenGL 4.1 Core Profile. Also, any mod that uses own shaders should be checked but it's probably a minor problem.
Doable: definitely. I already do something similar for dynamic lights. But this is still significantly slower than doing it all at once because you need to run two passes over all the collected render data. For lights I had no option because the only alternative would be to use textures, and that's even more costly, but for GL 3.x hardware on Windows the current setup is faster (3.x compatibility profile), it'd only help on Macs where those do not exist.dpJudas wrote:Do you think it would be possible to do it in two passes? First pass collects all the vertices and then uploads it to a buffer. Second pass runs as today, except it doesn't write the vertices - it just uses the index it would have used with persistent buffers. The tricky part is to make sure the two passes remain identical so that the indices doesn't get out of sync.
No, it would not get rid of GL 2.x support. Believe it or not, retro gamers often have pretty shitty computers. Some notebooks from only 4 years ago have no GL 3 support at all due to the crappy integrated graphics they come with. There's also an added problem that some first generation ATI GL 3 drivers are too buggy to actually use GL 3.dpJudas wrote:Not sure how difficult it would be to do (not familiar with this part of gzdoom yet), but maybe it would be worth it to get rid of OpenGL 2.x.