From f9e45fae6b4c1b846f7534e6692a0495d3b2f60d Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 5 Dec 2018 17:09:21 +0800 Subject: *gl --- examples/particle_system/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/particle_system/main.cpp') 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[]) -- cgit v1.1-26-g67d0