From a03b2ff48b305064c7689419e2cc297b5ccdc1aa Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Mon, 15 Aug 2016 23:51:49 +0200 Subject: [PATCH] Change render buffers from RGBA16F to RGBA16 --- src/gl/renderer/gl_renderbuffers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/renderer/gl_renderbuffers.cpp b/src/gl/renderer/gl_renderbuffers.cpp index 976b80c48..abf32500a 100644 --- a/src/gl/renderer/gl_renderbuffers.cpp +++ b/src/gl/renderer/gl_renderbuffers.cpp @@ -266,7 +266,7 @@ void FGLRenderBuffers::CreateBloom(int width, int height) GLuint FGLRenderBuffers::GetHdrFormat() { - return ((gl.flags & RFL_NO_RGBA16F) != 0) ? GL_RGBA8 : GL_RGBA16F; + return ((gl.flags & RFL_NO_RGBA16F) != 0) ? GL_RGBA8 : GL_RGBA16; } //========================================================================== @@ -296,7 +296,7 @@ int FGLRenderBuffers::GetCvarSamples() GLuint FGLRenderBuffers::Create2DTexture(GLuint format, int width, int height) { - GLuint type = (format == GL_RGBA16F) ? GL_FLOAT : GL_UNSIGNED_BYTE; + GLuint type = (format == GL_RGBA16) ? GL_UNSIGNED_SHORT : GL_UNSIGNED_BYTE; GLuint handle = 0; glGenTextures(1, &handle); glBindTexture(GL_TEXTURE_2D, handle);