driver: allow apply_driver_workaround to set options

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2020-04-22 20:13:18 +01:00
parent 0efdb6c2d9
commit adeb09b775
3 changed files with 4 additions and 9 deletions

View File

@@ -13,7 +13,7 @@
#include "log.h"
/// Apply driver specified global workarounds. It's safe to call this multiple times.
void apply_driver_workarounds(enum driver driver) {
void apply_driver_workarounds(struct session *ps, enum driver driver) {
if (driver & DRIVER_NVIDIA) {
setenv("__GL_YIELD", "usleep", true);
}