Skip to content

Commit

Permalink
Fix formatting to meet SFML style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
spacechase0 committed Jun 30, 2021
1 parent 5b33904 commit afef6cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SFML/Window/iOS/EaglContext.mm
Expand Up @@ -164,18 +164,18 @@ void ensureInit()
{
static void* module = 0;

const int LIB_COUNT = 3;
const char* LIBS[LIB_COUNT] =
const int libCount = 3;
const char* libs[libCount] =
{
"libGLESv1_CM.dylib",
"/System/Library/Frameworks/OpenGLES.framework/OpenGLES",
"OpenGLES.framework/OpenGLES"
};

for ( int i = 0; i < LIB_COUNT; ++i )
for (int i = 0; i < libCount; ++i)
{
if ( !module )
module = dlopen( LIBS[ i ], RTLD_LAZY | RTLD_LOCAL );
if (!module)
module = dlopen(libs[i], RTLD_LAZY | RTLD_LOCAL);
}

if (module)
Expand Down

0 comments on commit afef6cd

Please sign in to comment.