diff --git a/src/modules/graphics/Buffer.cpp b/src/modules/graphics/Buffer.cpp index a64e9654a..569bb1e8a 100644 --- a/src/modules/graphics/Buffer.cpp +++ b/src/modules/graphics/Buffer.cpp @@ -154,11 +154,19 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector 0 || info.isMatrix)) + { + const char *fstr = "unknown"; + getConstant(decl.format, fstr); + throw love::Exception("Data format %s%s is not currently supported in shader storage buffers.", fstr, decl.arrayLength > 0 ? " array" : ""); + } // "If the member is a structure, the base alignment of the structure // is N, where N is the largest base alignment value of any of its