diff options
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r-- | libs/rs/rsContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index c731db00afcc..4025ff81a008 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -18,6 +18,7 @@ #include "rsContext.h" #include "rsThreadIO.h" #include "utils/String8.h" +#include <ui/FramebufferNativeWindow.h> #include <GLES/gl.h> #include <GLES/glext.h> @@ -46,8 +47,7 @@ void Context::initEGL() eglChooseConfig(mDisplay, s_configAttribs, &mConfig, 1, &mNumConfigs); if (mWndSurface) { - mSurface = eglCreateWindowSurface(mDisplay, mConfig, - new EGLNativeWindowSurface(mWndSurface), + mSurface = eglCreateWindowSurface(mDisplay, mConfig, mWndSurface, NULL); } else { mSurface = eglCreateWindowSurface(mDisplay, mConfig, |