mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
gs: Fix some type conversion warnings
This commit is contained in:
parent
6a208ed215
commit
b266af1044
1 changed files with 2 additions and 2 deletions
|
@ -37,11 +37,11 @@ GS::IndexBuffer::IndexBuffer(uint32_t maximumVertices) {
|
||||||
|
|
||||||
GS::IndexBuffer::IndexBuffer() : IndexBuffer(defaultMaximumVertices) {}
|
GS::IndexBuffer::IndexBuffer() : IndexBuffer(defaultMaximumVertices) {}
|
||||||
|
|
||||||
GS::IndexBuffer::IndexBuffer(IndexBuffer& other) : IndexBuffer(other.size()) {
|
GS::IndexBuffer::IndexBuffer(IndexBuffer& other) : IndexBuffer((uint32_t)other.size()) {
|
||||||
std::copy(other.begin(), other.end(), this->end());
|
std::copy(other.begin(), other.end(), this->end());
|
||||||
}
|
}
|
||||||
|
|
||||||
GS::IndexBuffer::IndexBuffer(std::vector<uint32_t>& other) : IndexBuffer(other.size()) {
|
GS::IndexBuffer::IndexBuffer(std::vector<uint32_t>& other) : IndexBuffer((uint32_t)other.size()) {
|
||||||
std::copy(other.begin(), other.end(), this->end());
|
std::copy(other.begin(), other.end(), this->end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue