gl: Thread shader source compilation dispatch

- glCompileShader is in itself much slower than anticipated
This commit is contained in:
kd-11 2020-11-09 21:43:07 +03:00 committed by kd-11
parent 3ddfa288cf
commit 7553429130
10 changed files with 89 additions and 100 deletions

View file

@ -375,11 +375,6 @@ void GLFragmentProgram::Decompile(const RSXFragmentProgram& prog)
}
shader.create(::glsl::program_domain::glsl_fragment_program, source);
}
void GLFragmentProgram::Compile()
{
shader.compile();
id = shader.id();
}