diff options
author | SmileTheory <SmileTheory@gmail.com> | 2013-11-20 00:48:18 -0800 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:36 +0100 |
commit | 8dd7f524da987854ba07457daf180c5c5af81d44 (patch) | |
tree | eb859576653981eab405dc9557816f4a05e4972e /src/renderergl2/tr_fbo.c | |
parent | 5a11512c523148f43b9299bd06cb6af5c5a2ef21 (diff) |
OpenGL2: Use RGBA16F format for HDR.
RGB16F is not 4-byte aligned and not supported by certain hardware.
Diffstat (limited to 'src/renderergl2/tr_fbo.c')
-rw-r--r-- | src/renderergl2/tr_fbo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/tr_fbo.c b/src/renderergl2/tr_fbo.c index 35e2b74d..c76e7db1 100644 --- a/src/renderergl2/tr_fbo.c +++ b/src/renderergl2/tr_fbo.c @@ -386,7 +386,7 @@ void FBO_Init(void) hdrFormat = GL_RGBA8; if (r_hdr->integer && glRefConfig.framebufferObject && glRefConfig.textureFloat) { - hdrFormat = GL_RGB16F_ARB; + hdrFormat = GL_RGBA16F_ARB; } qglGetIntegerv(GL_MAX_SAMPLES_EXT, &multisample); |