Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Commit

Permalink
Delete some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
emileb authored and madame-rachelle committed May 24, 2021
1 parent 7eb0541 commit 8a71e75
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions src/common/rendering/gles/gles_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,25 +394,9 @@ bool FShader::Load(const char * name, const char * vert_prog_lump_, const char *

bool lightbuffertype = screen->mLights->GetBufferType();
unsigned int lightbuffersize = screen->mLights->GetBlockSize();
if (!lightbuffertype)
{
vp_comb.Format("#version 100\n#define NUM_UBO_LIGHTS %d\n#define NO_CLIPDISTANCE_SUPPORT\n", lightbuffersize);
}
/*
else
{
// This differentiation is for Intel which do not seem to expose the full extension, even if marked as required.
if (gles.glslversion < 4.3f)
vp_comb = "#version 400 core\n#extension GL_ARB_shader_storage_buffer_object : require\n#define SHADER_STORAGE_LIGHTS\n";
else
vp_comb = "#version 430 core\n#define SHADER_STORAGE_LIGHTS\n";
}

if (gl.flags & RFL_SHADER_STORAGE_BUFFER)
{
vp_comb << "#define SUPPORTS_SHADOWMAPS\n";
}
*/
vp_comb.Format("#version 100\n#define NUM_UBO_LIGHTS %d\n#define NO_CLIPDISTANCE_SUPPORT\n", lightbuffersize);

FString fp_comb = vp_comb;
vp_comb << defines << i_data.GetChars();
fp_comb << "$placeholder$\n" << defines << i_data.GetChars();
Expand Down

0 comments on commit 8a71e75

Please sign in to comment.