forked from Mirrors/openclonk
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
parent
7ef3e9c13e
commit
79b702ac4b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue