diff --git a/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp b/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp index e71f1d4a..91b520ce 100644 --- a/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp +++ b/MobileGL/MG_Test/Backend/DirectVulkan/TestExec.cpp @@ -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);