summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authoriamn1ck <iamn1ck@yahoo.com>2020-03-14 12:47:15 -0500
committerGitHub <noreply@github.com>2020-03-14 12:47:15 -0500
commit3d5ce1be0a75c863e3a0bccde823fb802ba7c085 (patch)
tree5749f383d82b1bedb6f3ba8b06987f96136f8462 /src/main.rs
parent9a491d5f7221c23e75268226844bf5ffd4d8f086 (diff)
parente249ab72ad4550a02bdd3081335485e03e4553bc (diff)
Merge pull request #1 from barrettTom/shadersHEADmaster
Added my stuff
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 5cb2e3a..320aa8f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -65,7 +65,7 @@ fn main() {
stream.play();
let mut tom = Tom::new(waveform);
- let mut n1ck = N1ck::new();
+ let mut n1ck = N1ck::new(&mut surface);
let viewports = gen_viewports();
@@ -93,7 +93,7 @@ fn main() {
if i == 0 || i == 3 {
surface = tom.draw(surface, &back_buffer, &program, &pipeline_state);
} else if i == 1 || i == 2 {
- surface = n1ck.draw(surface, &back_buffer, &program, &pipeline_state);
+ surface = n1ck.draw(surface, &back_buffer, &pipeline_state);
}
}