GLX: Don't crash when multisampling is supported

std::copy'ing into an empty vector doesn't work, and wasn't what was
intended in the first place. Assigning the full range should work better.
Controls
Nicolas Hake 2015-06-15 07:03:49 +02:00
parent 7ef3e9c13e
commit 79b702ac4b
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ void C4Window::EnumerateMultiSamples(std::vector<int>& samples) const
}
XFree(configs);
std::copy(multisamples.cbegin(), multisamples.cend(), samples.begin());
samples.assign(multisamples.cbegin(), multisamples.cend());
#endif
}