Permalink
Browse files

GLES: Refactor out duplicate code.

  • Loading branch information...
unknownbrackets committed Sep 21, 2018
1 parent cd0662c commit 4a5320ed7df5f082b95942544f4431124a1efbf2
Showing with 1 addition and 4 deletions.
  1. +1 −4 GPU/GLES/ShaderManagerGLES.cpp
@@ -695,10 +695,7 @@ Shader *ShaderManagerGLES::ApplyVertexShader(int prim, u32 vertType, VShaderID *
// Can still work with software transform.
VShaderID vsidTemp;
ComputeVertexShaderID(&vsidTemp, vertType, false);
uint32_t attrMask;
uint64_t uniformMask;
GenerateVertexShader(vsidTemp, codeBuffer_, &attrMask, &uniformMask);
vs = new Shader(render_, codeBuffer_, VertexShaderDesc(vsidTemp), GL_VERTEX_SHADER, false, attrMask, uniformMask);
vs = CompileVertexShader(vsidTemp);
}
vsCache_.Insert(*VSID, vs);

0 comments on commit 4a5320e

Please sign in to comment.