Only use an extra draw call for the background when drawing interleaved cells if it is actually required

This commit is contained in:
Kovid Goyal
2020-01-12 09:37:16 +05:30
parent 91673642b3
commit 714bee7f45
7 changed files with 44 additions and 29 deletions

View File

@@ -126,6 +126,12 @@ init_uniforms(int program) {
}
}
GLint
get_uniform_location(int program, const char *name) {
Program *p = programs + program;
return glGetUniformLocation(p->id, name);
}
GLint
get_uniform_information(int program, const char *name, GLenum information_type) {
GLint q; GLuint t;