variable double_buffer is not used when compiled with SDL