Skip to content

Commit d1cd6ce

Browse files
committed
Clean-up
1 parent 5e26f8f commit d1cd6ce

File tree

6 files changed

+4
-12
lines changed

6 files changed

+4
-12
lines changed

src/engine/renderer/gl_shader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ GLuint GLShaderManager::SortUniforms( std::vector<GLUniform*>& uniforms ) {
21842184
auto iterNext = FindUniformForOffset( uniformQueue, structSize );
21852185
if ( iterNext == uniformQueue.end() ) {
21862186
// add 1 unit of padding
2187-
ASSERT( !_materialSystemUniforms.back()->_components); // array WriteToBuffer impls don't handle padding correctly
2187+
ASSERT( !uniforms.back()->_components ); // array WriteToBuffer impls don't handle padding correctly
21882188
++structSize;
21892189
++uniforms.back()->_std430Size;
21902190
} else {
@@ -3078,7 +3078,6 @@ GlobalUBOProxy::GlobalUBOProxy() :
30783078
u_ColorMap3D( this ),
30793079
u_DepthMap( this ),
30803080
u_PortalMap( this ),
3081-
u_FogMap( this ),
30823081
u_DepthTile1( this ),
30833082
u_DepthTile2( this ),
30843083
u_LightTiles( this ),

src/engine/renderer/gl_shader.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3793,7 +3793,6 @@ class GlobalUBOProxy :
37933793
public u_ColorMap3D,
37943794
public u_DepthMap,
37953795
public u_PortalMap,
3796-
public u_FogMap,
37973796
public u_DepthTile1,
37983797
public u_DepthTile2,
37993798
public u_LightTiles,

src/engine/renderer/glsl_source/fogGlobal_fp.glsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2525
#insert common
2626
#insert fogEquation_fp
2727

28+
#define DEPTHMAP_GLSL
29+
2830
uniform sampler2D u_DepthMap;
2931

3032
uniform colorPack u_Color;

src/engine/renderer/glsl_source/fogQuake3_fp.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2424

2525
#insert fogEquation_fp
2626

27-
#define FOGQUAKE3_GLSL
27+
#define DEPTHMAP_GLSL
2828

2929
uniform float u_FogEyeT;
3030

src/engine/renderer/glsl_source/material_fp.glsl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5252
sampler3D u_ColorMap3D = sampler3D( u_ColorMap3D_initial );
5353
#endif // !CAMERAEFFECTS_GLSL
5454

55-
#if defined(FOGQUAKE3_GLSL)
56-
sampler2D u_FogMap = sampler2D( u_FogMap_initial );
57-
#endif // !FOGQUAKE3_GLSL
58-
5955
#if defined(LIQUID_GLSL)
6056
sampler2D u_PortalMap = sampler2D( u_PortalMap_initial );
6157
#endif // !LIQUID_GLSL

src/engine/renderer/tr_bsp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4663,10 +4663,6 @@ static void SetConstUniforms() {
46634663

46644664
globalUBOProxy->SetUniform_PortalMapBindless( GL_BindToTMU( 1, tr.portalRenderImage ) );
46654665

4666-
globalUBOProxy->SetUniform_FogMapBindless(
4667-
GL_BindToTMU( 0, tr.fogImage )
4668-
);
4669-
46704666
if ( glConfig.realtimeLighting ) {
46714667
globalUBOProxy->SetUniform_DepthTile1Bindless(
46724668
GL_BindToTMU( 0, tr.depthtile1RenderImage )

0 commit comments

Comments
 (0)