Correctly set the surface type upon creation.

Fix the window and pbuffer surface creation to set the correct type
based on which function was called. Currently the type was
incorrectly set to the bitmask of all surface types supported by the
chosen config.

Bug: 23036813
Change-Id: Ib2a274b760585809175ce60644f2007a1eb6bb0e
diff --git a/opengl/system/egl/egl.cpp b/opengl/system/egl/egl.cpp
index e9d59ab..e78433d 100644
--- a/opengl/system/egl/egl.cpp
+++ b/opengl/system/egl/egl.cpp
@@ -635,7 +635,7 @@
     }
 
     egl_surface_t* surface = egl_window_surface_t::create(
-            &s_display, config, surfaceType, static_cast<ANativeWindow*>(win));
+            &s_display, config, EGL_WINDOW_BIT, static_cast<ANativeWindow*>(win));
     if (!surface) {
         setErrorReturn(EGL_BAD_ALLOC, EGL_NO_SURFACE);
     }
@@ -689,7 +689,7 @@
         setErrorReturn(EGL_BAD_MATCH, EGL_NO_SURFACE);
 
     egl_surface_t* surface = egl_pbuffer_surface_t::create(dpy, config,
-            surfaceType, w, h, pixelFormat);
+            EGL_PBUFFER_BIT, w, h, pixelFormat);
     if (!surface) {
         setErrorReturn(EGL_BAD_ALLOC, EGL_NO_SURFACE);
     }