proper braces avoiding potential dangling else resulting from expansion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,7 +39,9 @@ WXGLContext WXGLCreateContext( WXGLPixelFormat pixelFormat, WXGLContext shareCon
|
||||
{
|
||||
WXGLContext context = [[NSOpenGLContext alloc] initWithFormat:pixelFormat shareContext: shareContext];
|
||||
if ( !context )
|
||||
{
|
||||
wxFAIL_MSG("NSOpenGLContext creation failed");
|
||||
}
|
||||
return context ;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user