Skip to content

Commit

Permalink
Move nmeRender to ExternalIntrface.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Sep 20, 2024
1 parent 126e6ef commit 27e7d44
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion project/src/common/ExternalInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void InitCamera();
void GetGLStats(int *statsArray, int n);
extern bool gRespectExifOrientation;


// Not static
int _id_id=0;

Expand Down Expand Up @@ -744,6 +745,7 @@ DEFINE_PRIME2(nme_##obj_prefix##_set_##prop)

using namespace nme;

std::string nmeRenderer;

double nme_time_stamp()
{
Expand Down Expand Up @@ -808,7 +810,6 @@ void nme_set_renderer(HxString inRenderer)
nmeEglMode = false;
#endif
#ifdef NME_SDL3
extern std::string nmeRenderer;
nmeRenderer = inRenderer.c_str();
#endif
}
Expand Down
1 change: 0 additions & 1 deletion project/src/opengl/OGLShaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ GLuint OGLProg::createShader(GLuint inType, const char *inShader)
if (shader==0)
{
ELOG("Error in glCreateShader : %d\n", glGetError() );
*(int *)0=0;
return 0;
}

Expand Down
2 changes: 1 addition & 1 deletion project/src/sdl2/SDL2Stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SDL_Surface *SDL_CreateRGBSurface(Uint32 flags, int width, int height, int depth

typedef float MousePosType;

std::string nmeRenderer;
extern std::string nmeRenderer;

#else
typedef int MousePosType;
Expand Down

0 comments on commit 27e7d44

Please sign in to comment.