2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Correctly use alcGetIntegerv.

This commit is contained in:
John Preston
2020-10-05 10:48:22 +03:00
parent 638ea3111f
commit e6df927e30

View File

@@ -524,7 +524,7 @@ void Instance::Inner::timeout() {
return;
}
ALint samples;
alcGetIntegerv(d->device, ALC_CAPTURE_SAMPLES, sizeof(samples), &samples);
alcGetIntegerv(d->device, ALC_CAPTURE_SAMPLES, 1, &samples);
if (ErrorHappened(d->device)) {
fail();
return;