Update egl_bridge.c

This commit is contained in:
Duy Tran Khanh 2021-11-09 19:11:40 +07:00 committed by GitHub
parent d6ecad04d4
commit f278cf01f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -845,7 +845,7 @@ int pojavInit() {
savedHeight,
EGL_NONE,
};
potatoBridge.eglSurface = eglCreatePbufferSurface_p(potatoBridge.eglDisplay, pbufferConfig);
potatoBridge.eglSurface = eglCreatePbufferSurface_p(potatoBridge.eglDisplay, config, pbufferAttribs);
} else {
potatoBridge.eglSurface = eglCreateWindowSurface_p(potatoBridge.eglDisplay, config, potatoBridge.androidWindow, NULL);
}