summaryrefslogtreecommitdiffstats
path: root/app/gfx
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx')
-rw-r--r--app/gfx/gl/gl_context_egl.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/app/gfx/gl/gl_context_egl.cc b/app/gfx/gl/gl_context_egl.cc
index 8a5fb68..a367cd8 100644
--- a/app/gfx/gl/gl_context_egl.cc
+++ b/app/gfx/gl/gl_context_egl.cc
@@ -2,7 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <EGL/egl.h>
+#include "app/gfx/gl/gl_context_egl.h"
+
+#include "build/build_config.h"
+#include "base/logging.h"
+#include "base/scoped_ptr.h"
+#include "third_party/angle/include/EGL/egl.h"
+
+// This header must come after the above third-party include, as
+// it brings in #defines that cause conflicts.
+#include "app/gfx/gl/gl_bindings.h"
#if defined(OS_LINUX)
extern "C" {
@@ -11,12 +20,6 @@ extern "C" {
#define EGL_HAS_PBUFFERS 1
#endif
-#include "build/build_config.h"
-#include "base/logging.h"
-#include "base/scoped_ptr.h"
-#include "app/gfx/gl/gl_bindings.h"
-#include "app/gfx/gl/gl_context_egl.h"
-
namespace gfx {
namespace {