JoeyDeVries / LearnOpenGL

Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
https://learnopengl.com
Other
11.06k stars 2.8k forks source link

HDR example uses esoteric framebuffer support #27

Closed jherico closed 8 years ago

jherico commented 8 years ago

https://github.com/JoeyDeVries/LearnOpenGL/blob/master/src/5.advanced_lighting/6.hdr/hdr.cpp#L107 refers to GL_RGB16F as the texture format for the color attachment, but many systems won't accept a framebuffer color attachment without an alpha channel. Suggest you change it to GL_RGBA16F

JoeyDeVries commented 8 years ago

Interesting, I've updated the source code (both here and in the tutorial). Thank you!