Fix su_render_samples to return correct values when built in 32-bit.

This commit is contained in:
Veikko Sariola
2020-10-24 17:04:27 +03:00
parent aa133b4606
commit 3bb3e5c88e

View File

@ -112,6 +112,7 @@ su_render_samples_buffer_full:
pop _AX
pop _AX
%if BITS == 32 ; stdcall
mov [_SP + 28],eax ; we want to return eax, but popad pops everything, so put eax to stack for popad to pop
popad
ret 12
%else