Prototype duplication fixes; split out engine.js into multiple components

This commit is contained in:
2023-09-07 21:46:35 +00:00
parent acecf2fde9
commit a4111b01a5
17 changed files with 1379 additions and 1367 deletions

View File

@@ -378,8 +378,8 @@ void openglRender(struct window *window) {
sg_shader sg_compile_shader(const char *v, const char *f, sg_shader_desc *d)
{
YughInfo("Making shader with %s and %s", v, f);
char *vs = slurp_text(v);
char *fs = slurp_text(f);
char *vs = slurp_text(v, NULL);
char *fs = slurp_text(f, NULL);
d->vs.source = vs;
d->fs.source = fs;