Fixed build error. Switch case only valid for GLES.