summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jason Sams <rjsams@android.com> 2009-09-22 12:26:53 -0700
committer Jason Sams <rjsams@android.com> 2009-09-22 12:26:53 -0700
commit59038ca98b5f258784687523ee3be11b5dfa995d (patch)
treec729e93a9e660c8e36d9eb9b1d65bca6e517eabc
parent008fc5d142b58688a3827a544c524dff11204c62 (diff)
Update viewport when height or width change.
-rw-r--r--libs/rs/rsContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index 04f6e070af33..3e4c9af87165 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -112,8 +112,8 @@ bool Context::runRootScript()
#endif
rsAssert(mRootScript->mEnviroment.mIsRoot);
- //glColor4f(1,1,1,1);
- //glEnable(GL_LIGHT0);
+ eglQuerySurface(mEGL.mDisplay, mEGL.mSurface, EGL_WIDTH, &mEGL.mWidth);
+ eglQuerySurface(mEGL.mDisplay, mEGL.mSurface, EGL_HEIGHT, &mEGL.mHeight);
glViewport(0, 0, mEGL.mWidth, mEGL.mHeight);
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glEnable(GL_POINT_SMOOTH);