commit | e18844a5f648071fcc3594f84bca1728644af41a | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Thu Nov 12 16:09:45 2009 -0800 |
committer | Jason Sams <rjsams@android.com> | Thu Nov 12 16:09:45 2009 -0800 |
tree | 5b70bc95cab81c80576519967512fd4822779177 | |
parent | 613cad1702dbb76eb2a6ba0cfcb43b9fe207cebc [diff] [blame] |
Make default vertex program correctly track surface size.
diff --git a/rsContext.cpp b/rsContext.cpp index ab3809d..c835dda 100644 --- a/rsContext.cpp +++ b/rsContext.cpp
@@ -443,6 +443,7 @@ eglQuerySurface(mEGL.mDisplay, mEGL.mSurface, EGL_HEIGHT, &mEGL.mHeight); mWidth = w; mHeight = h; + mStateVertex.updateSize(this, w, h); if ((int)mWidth != mEGL.mWidth || (int)mHeight != mEGL.mHeight) { LOGE("EGL/Surface mismatch EGL (%i x %i) SF (%i x %i)", mEGL.mWidth, mEGL.mHeight, mWidth, mHeight);