Delete the gl name cache (might resurrect it on the GLQueueRunner side if needed later). Other cleanup and fixes.

This commit is contained in:
Henrik Rydgård 2017-12-12 14:07:52 +01:00
parent 46e1fbb788
commit f3282dcfda
12 changed files with 185 additions and 405 deletions

View file

@ -99,16 +99,7 @@ void GLQueueRunner::RunInitSteps(const std::vector<GLRInitStep> &steps) {
break;
}
// Auto-initialize samplers.
glUseProgram(program->program);
for (int i = 0; i < 4; i++) {
char temp[256];
sprintf(temp, "Sampler%i", i);
int samplerLoc = glGetUniformLocation(program->program, temp);
if (samplerLoc != -1) {
glUniform1i(samplerLoc, i);
}
}
// Query all the uniforms.
for (int i = 0; i < program->queries_.size(); i++) {