diff options
| author | Jesse Hall <jessehall@google.com> | 2012-05-09 15:45:23 -0700 |
|---|---|---|
| committer | Jesse Hall <jessehall@google.com> | 2012-05-10 10:06:56 -0700 |
| commit | ab800d7b0188e840407a61fa931f678d2ef46de6 (patch) | |
| tree | 7fd509cfa7f2e005f9b162f9200677c14fbd0fff /emulator/opengl/host/renderer | |
| parent | 347fec44f5ebd8e037a47f66256eb739ade9aa6c (diff) | |
| download | sdk-ab800d7b0188e840407a61fa931f678d2ef46de6.zip sdk-ab800d7b0188e840407a61fa931f678d2ef46de6.tar.gz sdk-ab800d7b0188e840407a61fa931f678d2ef46de6.tar.bz2 | |
Allow frame callback to be enabled/disabled
Since per-frame readback is slow and clients don't need it on all the
time, this change allows the callback to be registered after
initialization, and allows it to be disabled later.
Change-Id: Ic73d4515d302a0981ee0c80b9e6f9ba5c84b82ae
Diffstat (limited to 'emulator/opengl/host/renderer')
| -rw-r--r-- | emulator/opengl/host/renderer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/opengl/host/renderer/main.cpp b/emulator/opengl/host/renderer/main.cpp index ae7ace3..4549c56 100644 --- a/emulator/opengl/host/renderer/main.cpp +++ b/emulator/opengl/host/renderer/main.cpp @@ -120,7 +120,7 @@ int main(int argc, char *argv[]) // // initialize Framebuffer // - bool inited = FrameBuffer::initialize(winWidth, winHeight, NULL, NULL); + bool inited = FrameBuffer::initialize(winWidth, winHeight); if (!inited) { fprintf(stderr,"Failed to initialize Framebuffer\n"); return -1; |
