From 9552a73ea86338201815a3fabe6a05ee799c94dc Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sun, 21 Sep 2014 19:46:36 +0200 Subject: [PATCH] Actually RH requires higher depth for alpha --- src/graphics/rtts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics/rtts.cpp b/src/graphics/rtts.cpp index ca48e87f5..b474bd859 100644 --- a/src/graphics/rtts.cpp +++ b/src/graphics/rtts.cpp @@ -245,9 +245,9 @@ RTT::RTT(size_t width, size_t height) somevector.push_back(RSM_Normal); m_RSM = new FrameBuffer(somevector, RSM_Depth, 1024, 1024, true); - RH_Red = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGB10_A2, GL_RGBA, GL_FLOAT); - RH_Green = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGB10_A2, GL_RGBA, GL_FLOAT); - RH_Blue = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGB10_A2, GL_RGBA, GL_FLOAT); + RH_Red = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGBA16F, GL_RGBA, GL_FLOAT); + RH_Green = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGBA16F, GL_RGBA, GL_FLOAT); + RH_Blue = generateRTT3D(GL_TEXTURE_3D, 32, 16, 32, GL_RGBA16F, GL_RGBA, GL_FLOAT); somevector.clear(); somevector.push_back(RH_Red);