33 lines
992 B
Diff
33 lines
992 B
Diff
From 69bfc75b74c4b554fb576562684ba0b970771fb4 Mon Sep 17 00:00:00 2001
|
|
From: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
|
|
Date: Wed, 12 May 2021 17:20:50 -0500
|
|
Subject: [PATCH 5/5] glfw: fix glfw3.h gl error
|
|
|
|
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
|
|
---
|
|
samples/extensions/open_gl_interop/offscreen_context.h | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/samples/extensions/open_gl_interop/offscreen_context.h b/samples/extensions/open_gl_interop/offscreen_context.h
|
|
index c125aeb..7260c11 100644
|
|
--- a/samples/extensions/open_gl_interop/offscreen_context.h
|
|
+++ b/samples/extensions/open_gl_interop/offscreen_context.h
|
|
@@ -57,6 +57,7 @@ struct ContextData
|
|
};
|
|
#else
|
|
// Desktop
|
|
+#define GLFW_INCLUDE_ES31
|
|
# include <GLFW/glfw3.h>
|
|
# include <GLFW/glfw3native.h>
|
|
|
|
@@ -87,4 +88,4 @@ class OffscreenContext
|
|
ContextData data;
|
|
|
|
GLuint load_shader(const char *shader_source, GLenum shader_type);
|
|
-};
|
|
\ No newline at end of file
|
|
+};
|
|
--
|
|
2.25.1
|
|
|