From 0057c6dcf1a6be51dcae5e6909de60bf58e3424e Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Wed, 18 Sep 2024 19:47:22 +0800 Subject: [PATCH] Fix egl cmpiling for Android --- project/src/opengl/OGLTexture.cpp | 4 +++- project/src/opengl/OpenGLContext.cpp | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/project/src/opengl/OGLTexture.cpp b/project/src/opengl/OGLTexture.cpp index f33bd6a60..3774e106c 100644 --- a/project/src/opengl/OGLTexture.cpp +++ b/project/src/opengl/OGLTexture.cpp @@ -43,7 +43,9 @@ #define ARGB_PIXEL GL_BGRA #endif -//Constant Value: 32993 +#ifndef GL_UNPACK_ROW_LENGTH +#define GL_UNPACK_ROW_LENGTH 0x0CF2 +#endif namespace nme { diff --git a/project/src/opengl/OpenGLContext.cpp b/project/src/opengl/OpenGLContext.cpp index 0d5c7c32c..bdfa94466 100644 --- a/project/src/opengl/OpenGLContext.cpp +++ b/project/src/opengl/OpenGLContext.cpp @@ -6,6 +6,10 @@ #include #endif +#ifdef ANDROID +#include +#endif + #ifdef NME_DYNAMIC_ANGLE bool nmeEglMode = true; #endif