mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Fix] (MG_Test/Backend/DirectVulkan/TestExec): initialize MobileGL first then EGL stuff
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user