514
530
screen->device_lost = true;
515
531
} else if (bs->ctx->batch_states_count > 5000) {
516
532
/* throttle in case something crazy is happening */
519
535
/* this resets the buffer hashlist for the state's next use */
520
536
memset(&bs->buffer_indices_hashlist, -1, sizeof(bs->buffer_indices_hashlist));