[Fix] (MG_Test/Backend/DirectVulkan/TestExec): initialize MobileGL first then EGL stuff

This commit is contained in:
2026-02-24 09:26:46 +08:00
parent d42182befc
commit 4b8d809237
@@ -94,6 +94,8 @@ static bool CheckProgramLink(GLuint program) {
int main() {
glfwInit();
MobileGL::Initialize();
static EGLint const attribute_list[] = {EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_BLUE_SIZE, 8, EGL_NONE};
EGLDisplay display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
@@ -129,8 +131,6 @@ int main() {
EGLSurface surface = eglCreateWindowSurface(display, config, nativewindow, nullptr);
eglMakeCurrent(display, surface, surface, context);
MobileGL::Initialize();
GLuint offscreenTex = 0;
GLuint offscreenFbo = 0;
glGenTextures(1, &offscreenTex);