diff --git a/MG/Global.h b/MG/Global.h index 9e21f227..2fb584b4 100644 --- a/MG/Global.h +++ b/MG/Global.h @@ -17,7 +17,7 @@ namespace MG_Global { } namespace Backend { -#define BACKEND_TYPE BACKEND_VULKAN +// BACKEND_TYPE is defined in Includes.h } namespace GL { diff --git a/MG/Includes.h b/MG/Includes.h index ef20f471..fb859620 100644 --- a/MG/Includes.h +++ b/MG/Includes.h @@ -3,9 +3,8 @@ // #include "Constants.h" -#ifndef MOBILEGL_GLOBAL_H +#define BACKEND_TYPE BACKEND_VULKAN #include "Global.h" -#endif #ifndef MOBILEGL_GL_FRAMEBUFFER_H #include "MG_GL/GL/Framebuffer/GL_Framebuffer.h" #endif @@ -21,14 +20,11 @@ #ifndef MOBILEGL_DEBUG_H #include "MG_UTIL/Debug/Debug.h" #endif -//#ifndef MOBILEGL_MESAEMU_H -//#include "MG_GL/TEMP_MESA/MesaEmu.h" -//#endif #ifndef MOBILEGL_GL_DEPTH_H -#include "MG_GL/GL/Depth/GL_Depth.h" +#include "MG_GL/GL/Common/GL_Common.h" #endif -#ifndef MOBILEGL_EGL_EMU_H -#include "MG_GL/EGL/EGL_EMU.h" +#ifndef MOBILEGL_EGL_VK_EMU_H +#include "MG_GL/EGL/VK/EGL_EMU.h" #endif #include diff --git a/MG/MG_GL/GL/Common/GL_Common.h b/MG/MG_GL/GL/Common/GL_Common.h index 6b48d2b0..0eed4b80 100644 --- a/MG/MG_GL/GL/Common/GL_Common.h +++ b/MG/MG_GL/GL/Common/GL_Common.h @@ -2,8 +2,8 @@ // Created by BZLZHH on 2025/3/15. // -#ifndef MOBILEGL_GL_DEPTH_H -#define MOBILEGL_GL_DEPTH_H +#ifndef MOBILEGL_GL_COMMON_H +#define MOBILEGL_GL_COMMON_H #include "../../../Includes.h" @@ -13,4 +13,4 @@ namespace MG_GL::GL { void Clear(GLbitfield mask); } -#endif //MOBILEGL_GL_DEPTH_H +#endif //MOBILEGL_GL_COMMON_H