Fix warnings and errors on clang-3.9
This commit is contained in:
@@ -15,8 +15,12 @@
|
||||
|
||||
#include <vulkan/vulkan.hpp>
|
||||
#define GLM_FORCE_RADIANS
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning( disable : 4201 ) // disable warning C4201: nonstandard extension used: nameless struct/union; needed
|
||||
// to get glm/detail/type_vec?.hpp without warnings
|
||||
#endif
|
||||
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
namespace vk
|
||||
|
||||
@@ -230,8 +230,8 @@ namespace vk
|
||||
class CheckerboardImageGenerator
|
||||
{
|
||||
public:
|
||||
CheckerboardImageGenerator( std::array<uint8_t, 3> const & rgb0 = { 0, 0, 0 },
|
||||
std::array<uint8_t, 3> const & rgb1 = { 255, 255, 255 } );
|
||||
CheckerboardImageGenerator( std::array<uint8_t, 3> const & rgb0 = { { 0, 0, 0 } },
|
||||
std::array<uint8_t, 3> const & rgb1 = { { 255, 255, 255 } } );
|
||||
|
||||
void operator()( void * data, vk::Extent2D & extent ) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user