summaryrefslogtreecommitdiff
path: root/src/example/03_texture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/03_texture.c')
-rw-r--r--src/example/03_texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/example/03_texture.c b/src/example/03_texture.c
index 50a96a1..781bf6b 100644
--- a/src/example/03_texture.c
+++ b/src/example/03_texture.c
@@ -111,12 +111,12 @@ void ondrawtexture(void*data) {
ssr_bindvertices(mech_mesh->vertices, mech_mesh->verts_count, mech_mesh->triangles, mech_mesh->tris_count);
ssr_draw(PRIMITIVE_TRIANGLE);
- ssr_setuniformtex(0, yingham_albedo);
- ssr_bindvertices(yingham_mesh->vertices, yingham_mesh->verts_count, yingham_mesh->triangles, yingham_mesh->tris_count);
- ssr_draw(PRIMITIVE_TRIANGLE);
-
ssr_setuniformtex(0, ground_albedo);
ssr_bindvertices(ground_mesh->vertices, ground_mesh->verts_count, ground_mesh->triangles, ground_mesh->tris_count);
ssr_draw(PRIMITIVE_TRIANGLE);
+ ssr_setuniformtex(0, yingham_albedo);
+ ssr_bindvertices(yingham_mesh->vertices, yingham_mesh->verts_count, yingham_mesh->triangles, yingham_mesh->tris_count);
+ ssr_draw(PRIMITIVE_TRIANGLE);
+
}