diff options
| author | 2011-11-21 15:56:11 -0800 | |
|---|---|---|
| committer | 2011-11-21 15:56:11 -0800 | |
| commit | f59fa92c300754fb5e203892bf28167459733289 (patch) | |
| tree | ff789bdd9929cdbb7b0fb746463d41caba57c63f /opengl/libs | |
| parent | 092ecfb373a17387cb1d9fe995ebfd9fda0a82b9 (diff) | |
| parent | b440acd1c807bfc0ffee6984b4fa27adcac705a6 (diff) | |
am 53cf2020: Merge changes I37fd43b5,I91eb29db,I0491ce35 into ics-mr1
* commit '53cf20202a3848a6c61b5229814268180a3d2f16':
SurfaceTexture: fix a couple tests
EGL: default to swap interval 1
SurfaceTexture: clean up some tests
Diffstat (limited to 'opengl/libs')
| -rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 2237eb6c08..a63d5b054d 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -370,6 +370,11 @@ EGLSurface eglCreateWindowSurface( EGLDisplay dpy, EGLConfig config, } } + // the EGL spec requires that a new EGLSurface default to swap interval + // 1, so explicitly set that on the window here. + ANativeWindow* anw = reinterpret_cast<ANativeWindow*>(window); + anw->setSwapInterval(anw, 1); + EGLSurface surface = cnx->egl.eglCreateWindowSurface( iDpy, iConfig, window, attrib_list); if (surface != EGL_NO_SURFACE) { |