aboutsummaryrefslogtreecommitdiff
path: root/examples/particle_system/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/particle_system/main.cpp')
-rw-r--r--examples/particle_system/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/particle_system/main.cpp b/examples/particle_system/main.cpp
index 1c76ee6..6b7de94 100644
--- a/examples/particle_system/main.cpp
+++ b/examples/particle_system/main.cpp
@@ -144,13 +144,13 @@ void onUpdate(int ms)
void onDraw()
{
- shader->use();
+ gl.useShader(shader);
Mouse* m = Mouse::get();
int x, y;
m->getState(&x, &y);
p->setPosition(x, y);
p->render();
- shader->unuse();
+ gl.unuseShader();
}
int main(int argc, char* argv[])