frameworks/base
Revisión | dcbd4d2ea89a3df2ffb79f13fc5ecddee7e0e74f (tree) |
---|---|
Tiempo | 2010-04-18 21:35:47 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
libRS: initEGL according to GL version
Do not use GL2 for libagl since it doesn't implement EGL_OPENGL_ES2_BIT.
@@ -477,7 +477,7 @@ void Context::setSurface(uint32_t w, uint32_t h, Surface *sur) | ||
477 | 477 | if (!mEGL.mContext) { |
478 | 478 | first = true; |
479 | 479 | pthread_mutex_lock(&gInitMutex); |
480 | - initEGL(true); | |
480 | + initEGL(checkVersion2_0()); | |
481 | 481 | pthread_mutex_unlock(&gInitMutex); |
482 | 482 | } |
483 | 483 |