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
1 file changed