diff --git a/src/duckstation-qt/opengldisplaywindow.h b/src/duckstation-qt/opengldisplaywindow.h index 5feeafb12..a4d35e205 100644 --- a/src/duckstation-qt/opengldisplaywindow.h +++ b/src/duckstation-qt/opengldisplaywindow.h @@ -1,6 +1,13 @@ #pragma once + +// GLAD has to come first so that Qt doesn't pull in the system GL headers, which are incompatible with glad. #include +// Hack to prevent Apple's glext.h headers from getting included via qopengl.h, since we still want to use glad. +#ifdef __APPLE__ +#define __glext_h_ +#endif + #include "common/gl/program.h" #include "common/gl/texture.h" #include "core/host_display.h"