gles: fixed crash with nv12 format