mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
impr: Move OpenGL loaders into header to avoid issues in the future
This commit is contained in:
@@ -1,16 +1,11 @@
|
||||
#include <hex/helpers/opengl.hpp>
|
||||
#include <opengl_support.h>
|
||||
|
||||
#include <hex/helpers/utils.hpp>
|
||||
#include <hex/helpers/logger.hpp>
|
||||
|
||||
#include <wolv/utils/guards.hpp>
|
||||
|
||||
#if defined(OS_WEB)
|
||||
#define GLFW_INCLUDE_ES3
|
||||
#include <GLES3/gl3.h>
|
||||
#else
|
||||
#include <imgui_impl_opengl3_loader.h>
|
||||
#endif
|
||||
|
||||
namespace hex::gl {
|
||||
|
||||
|
||||
@@ -1,18 +1,8 @@
|
||||
#include <hex/ui/imgui_imhex_extensions.h>
|
||||
|
||||
#if defined(OS_WEB)
|
||||
#define IMGL3W_IMPL
|
||||
#endif
|
||||
|
||||
#include <imgui.h>
|
||||
#include <imgui_internal.h>
|
||||
|
||||
#if defined(OS_WEB)
|
||||
#define GLFW_INCLUDE_ES3
|
||||
#include <GLES3/gl3.h>
|
||||
#else
|
||||
#include <imgui_impl_opengl3_loader.h>
|
||||
#endif
|
||||
#include <opengl_support.h>
|
||||
|
||||
#undef IMGUI_DEFINE_MATH_OPERATORS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user