merge in jb-mr2-release history after reset to jb-mr2-dev
diff --git a/libs/gui/tests/SurfaceTexture_test.cpp b/libs/gui/tests/SurfaceTexture_test.cpp
index 47f6df7..dd6c435 100644
--- a/libs/gui/tests/SurfaceTexture_test.cpp
+++ b/libs/gui/tests/SurfaceTexture_test.cpp
@@ -463,19 +463,12 @@
         glVertexPointer(2, GL_FLOAT, 0, vertices);
         glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
 
-        ASSERT_EQ( glGetError(), GL_NO_ERROR );
+        ASSERT_EQ(GLenum(GL_NO_ERROR), glGetError());
     }
-    ASSERT_TRUE( eglSwapBuffers(mEglDisplay, mEglSurface) );
-
-    uint32_t* pixels = new uint32_t[8*16*16];
-    glReadPixels(0, 0, 8*16, 16, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
 
     for (int i=0 ; i<8 ; i++) {
-        uint32_t p = pixels[i*16 + 8 + 8*(8*16)]; // center of each square
-        EXPECT_EQ(p, (i&7) * 0x10101010);
+        EXPECT_TRUE(checkPixel(i*16 + 8,  8, i*16, i*16, i*16, i*16, 0));
     }
-
-    delete [] pixels;
 }
 
 
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp
index 9a214c2..74d3973 100644
--- a/opengl/libs/EGL/eglApi.cpp
+++ b/opengl/libs/EGL/eglApi.cpp
@@ -78,6 +78,7 @@
         "EGL_KHR_gl_renderbuffer_image "
         "EGL_KHR_reusable_sync "
         "EGL_KHR_fence_sync "
+        "EGL_KHR_create_context "
         "EGL_EXT_create_context_robustness "
         "EGL_NV_system_time "
         "EGL_ANDROID_image_native_buffer "      // mandatory