|
@@ -50,7 +50,6 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDe
|
|
|
throw love::Exception("Data format must contain values.");
|
|
|
|
|
|
const auto &caps = gfx->getCapabilities();
|
|
|
- bool supportsGLSL3 = caps.features[Graphics::FEATURE_GLSL3];
|
|
|
|
|
|
bool indexbuffer = usageFlags & BUFFERUSAGEFLAG_INDEX;
|
|
|
bool vertexbuffer = usageFlags & BUFFERUSAGEFLAG_VERTEX;
|
|
@@ -107,9 +106,6 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDe
|
|
|
if (info.baseType == DATA_BASETYPE_BOOL)
|
|
|
throw love::Exception("Bool types are not supported in vertex buffers.");
|
|
|
|
|
|
- if ((info.baseType == DATA_BASETYPE_INT || info.baseType == DATA_BASETYPE_UINT) && !supportsGLSL3)
|
|
|
- throw love::Exception("Integer vertex attribute data types require GLSL 3 support.");
|
|
|
-
|
|
|
if (decl.name.empty())
|
|
|
throw love::Exception("Vertex buffer attributes must have a name.");
|
|
|
}
|