如果surface不是EGL绘图表面,系统会返回EGL_BAD_SURFACE错误。建议检查eglCreateWindowSurface、eglCreatePixmapSurface和eglCreatePbufferSurface的参数设置。