OSDN Git Service

libRS: initEGL according to GL version
authorChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 18 Apr 2010 12:35:47 +0000 (20:35 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 29 Oct 2010 07:45:15 +0000 (15:45 +0800)
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

libs/rs/rsContext.cpp

index d8a9a99..72a98d5 100644 (file)
@@ -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);
         }