Changed render buffers format back to RGBA16F

Reverted a03b2ff48b to fix issues with nVidia graphics on macOS
This commit is contained in:
alexey.lysiuk 2016-08-28 11:12:06 +03:00
parent 03d055a5ec
commit 47714509d6

View file

@ -274,7 +274,7 @@ void FGLRenderBuffers::CreateBloom(int width, int height)
GLuint FGLRenderBuffers::GetHdrFormat()
{
return ((gl.flags & RFL_NO_RGBA16F) != 0) ? GL_RGBA8 : GL_RGBA16;
return ((gl.flags & RFL_NO_RGBA16F) != 0) ? GL_RGBA8 : GL_RGBA16F;
}
//==========================================================================
@ -285,7 +285,7 @@ GLuint FGLRenderBuffers::GetHdrFormat()
GLuint FGLRenderBuffers::Create2DTexture(const FString &name, GLuint format, int width, int height)
{
GLuint type = (format == GL_RGBA16) ? GL_UNSIGNED_SHORT : GL_UNSIGNED_BYTE;
GLuint type = (format == GL_RGBA16F) ? GL_FLOAT : GL_UNSIGNED_BYTE;
GLuint handle = 0;
glGenTextures(1, &handle);
glBindTexture(GL_TEXTURE_2D, handle);