diff options
author | chai <chaifix@163.com> | 2018-12-05 17:09:21 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-05 17:09:21 +0800 |
commit | f9e45fae6b4c1b846f7534e6692a0495d3b2f60d (patch) | |
tree | 9a59d87b24fb12f9cd249deb4beae21299ea0edf /examples/particle_system/main.cpp | |
parent | d14d3de517e3bea5470ba42a4d1646cca77c2d25 (diff) |
*gl
Diffstat (limited to 'examples/particle_system/main.cpp')
-rw-r--r-- | examples/particle_system/main.cpp | 4 |
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[]) |