OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d704e7
)
libRS: initEGL according to GL version
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Sun, 18 Apr 2010 12:35:47 +0000
(20:35 +0800)
committer
Chih-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
patch
|
blob
|
history
diff --git
a/libs/rs/rsContext.cpp
b/libs/rs/rsContext.cpp
index
d8a9a99
..
72a98d5
100644
(file)
--- 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);
}