Delete the gl name cache (might resurrect it on the GLQueueRunner side if needed later). Other cleanup and fixes.
This commit is contained in:
parent
46e1fbb788
commit
f3282dcfda
12 changed files with 185 additions and 405 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue