| Index: samples/openglui/src/openglui_raytrace.dart
|
| ===================================================================
|
| --- samples/openglui/src/openglui_raytrace.dart (revision 19664)
|
| +++ samples/openglui/src/openglui_raytrace.dart (working copy)
|
| @@ -345,6 +345,7 @@
|
| gl.clearDepth(1.0);
|
| initBuffers();
|
| resize(w, h);
|
| + requestAnimationFrame(update);
|
| log("Done setup");
|
| }
|
|
|
| @@ -355,8 +356,9 @@
|
| drawScene();
|
| }
|
|
|
| -void update() {
|
| +void update(when) {
|
| drawScene();
|
| + requestAnimationFrame(update);
|
| }
|
|
|
| onMotionDown(num when, num x, num y) {
|
|
|