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 committed 2018-01-27 15:10:17 +01:00
1 parent 46e1fbb788
commit f3282dcfda
12 files changed
+185 -405

No files matched your search

-9
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++) {