Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that SimpleShaderObjectData returns nullptr for empty buffer
This is a C++ technicality, and is not known to have caused any issue. https://en.cppreference.com/w/cpp/container/vector/data says: "If size() is 0, data() may or may not return a null pointer." Thus, we check if the underlying std::vector is empty and then explicitly return nullptr in this case.
- Loading branch information