Messing around with when to do glGen, solving a memory leak because of that, and rewriting Scene::spawn to use the instancing stuff.
This commit is contained in:
parent
a199d41890
commit
6ffc6cb4ca
9 changed files with 23 additions and 31 deletions
|
|
@ -14,13 +14,13 @@ namespace model_tests {
|
|||
Shader shader({"shaders/14-vert.glsl", "shaders/14-frag.glsl", ""});
|
||||
|
||||
Model popcorn{"assets", "popcorn_model_a.glb"};
|
||||
popcorn.draw(shader);
|
||||
popcorn.draw(shader, true, 1);
|
||||
|
||||
Model crate_glb{"assets", "crate.glb"};
|
||||
crate_glb.draw(shader);
|
||||
crate_glb.draw(shader, true, 1);
|
||||
|
||||
Model crate_obj{"assets", "crate.obj"};
|
||||
crate_obj.draw(shader);
|
||||
crate_obj.draw(shader, true, 1);
|
||||
}
|
||||
|
||||
void test_failures() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue