summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Wei Huang <cwhuang@linux.org.tw>2010-04-18 20:35:47 +0800
committerSteve Kondik <shade@chemlab.org>2010-07-06 12:56:20 -0400
commite6086efd81cf0472fdc72e205239dc1fded02854 (patch)
tree207b833893717f65351b238537c88d4fc94eb52f
parent875fac024a214401ed6fce634fe3c33f5d8910f4 (diff)
downloadframeworks_base-e6086efd81cf0472fdc72e205239dc1fded02854.zip
frameworks_base-e6086efd81cf0472fdc72e205239dc1fded02854.tar.gz
frameworks_base-e6086efd81cf0472fdc72e205239dc1fded02854.tar.bz2
libRS: initEGL according to GL version
Do not use GL2 for libagl since it doesn't implement EGL_OPENGL_ES2_BIT. See http://code.google.com/p/0xdroid/issues/detail?id=76
-rw-r--r--libs/rs/rsContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index d8a9a99..72a98d5 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -498,7 +498,7 @@ void Context::setSurface(uint32_t w, uint32_t h, android_native_window_t *sur)
if (!mEGL.mContext) {
first = true;
pthread_mutex_lock(&gInitMutex);
- initEGL(true);
+ initEGL(checkVersion2_0());
pthread_mutex_unlock(&gInitMutex);
}