Skip to content

Commit

Permalink
Fix egl cmpiling for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Sep 18, 2024
1 parent 9473bbb commit 0057c6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/src/opengl/OGLTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 4 additions & 0 deletions project/src/opengl/OpenGLContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <dlfcn.h>
#endif

#ifdef ANDROID
#include <EGL/egl.h>
#endif

#ifdef NME_DYNAMIC_ANGLE
bool nmeEglMode = true;
#endif
Expand Down

0 comments on commit 0057c6d

Please sign in to comment.