OGL: Remove unnecessary c_str calls

This commit is contained in:
Lioncash
2016-09-09 06:26:52 -04:00
parent 1eacb8fd59
commit 5b3c74a31a
3 changed files with 8 additions and 8 deletions

View File

@ -399,14 +399,14 @@ void TextureCache::CompileShaders()
const char* depth_layer = g_ActiveConfig.bStereoEFBMonoDepth ? "0.0" : "f_uv0.z";
ProgramShaderCache::CompileShader(s_ColorCopyProgram,
StringFromFormat(vertex_program, prefix, prefix).c_str(),
StringFromFormat(vertex_program, prefix, prefix),
color_copy_program, geo_program);
ProgramShaderCache::CompileShader(s_ColorMatrixProgram,
StringFromFormat(vertex_program, prefix, prefix).c_str(),
StringFromFormat(vertex_program, prefix, prefix),
color_matrix_program, geo_program);
ProgramShaderCache::CompileShader(
s_DepthMatrixProgram, StringFromFormat(vertex_program, prefix, prefix).c_str(),
StringFromFormat(depth_matrix_program, depth_layer).c_str(), geo_program);
s_DepthMatrixProgram, StringFromFormat(vertex_program, prefix, prefix),
StringFromFormat(depth_matrix_program, depth_layer), geo_program);
s_ColorMatrixUniform = glGetUniformLocation(s_ColorMatrixProgram.glprogid, "colmat");
s_DepthMatrixUniform = glGetUniformLocation(s_DepthMatrixProgram.glprogid, "colmat");