aboutsummaryrefslogtreecommitdiffstats
path: root/glprog.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2018-05-02 19:35:20 +0100
committerTomasz Kramkowski <tk@the-tk.com>2018-05-02 19:35:20 +0100
commit3c1b90a736e3958a9f0545f04b1af7fc00b74b4e (patch)
tree7e65e1edcbf231710534c7a391e08a24b3cdfb76 /glprog.h
parent024a3b2dc8c600013b9b76c7f919594d533ba774 (diff)
downloadfaqe-3c1b90a736e3958a9f0545f04b1af7fc00b74b4e.tar.gz
faqe-3c1b90a736e3958a9f0545f04b1af7fc00b74b4e.tar.xz
faqe-3c1b90a736e3958a9f0545f04b1af7fc00b74b4e.zip
Improve glprog_load to take sentinel terminated lists
Numerous times a new uniform has been added and the corresponding increment of the nunis parameter was forgotten causing confusion. This should not happen anymore.
Diffstat (limited to 'glprog.h')
-rw-r--r--glprog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/glprog.h b/glprog.h
index a81f6d6..cd0ef83 100644
--- a/glprog.h
+++ b/glprog.h
@@ -18,6 +18,6 @@ struct shdrdat {
GLint len;
};
-GLuint glprog_load(int nshdrs, const struct shdrdat *shdrs, int nunis, const struct unidat *unis);
+GLuint glprog_load(const struct shdrdat *shdrs, const struct unidat *unis);
#endif // SHADER_H