Skip to content

Commit

Permalink
Merge pull request #2026 from PetrosKataras/fix-headless-with-clang
Browse files Browse the repository at this point in the history
Fix headless compilation with clang.
  • Loading branch information
andrewfb committed Aug 7, 2018
2 parents c65b6c3 + 71ec4c8 commit e1b4249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cinder/app/linux/RendererGlLinuxHeadless.cpp
Expand Up @@ -85,7 +85,7 @@ bool RendererGlLinux::initialize( ci::ivec2 renderSize, RendererRef sharedRender
if( ! eglQueryDevicesEXT || ! eglQueryDevicesEXT( 0, nullptr, &numDevices ) || numDevices < 1 )
return false;

std::vector<EGLDeviceEXT> devices{ numDevices };
std::vector<EGLDeviceEXT> devices( numDevices );
if( ! eglQueryDevicesEXT( numDevices, devices.data(), &numDevices ) || numDevices < 1 )
return false;

Expand Down

0 comments on commit e1b4249

Please sign in to comment.