mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-23 07:56:52 +00:00
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2867 Co-authored-by: MaranBr <maranbr@outlook.com> Co-committed-by: MaranBr <maranbr@outlook.com>
This commit is contained in:
@@ -243,7 +243,7 @@ Device::Device(Core::Frontend::EmuWindow& emu_window) {
|
||||
}
|
||||
|
||||
if (shader_backend == Settings::ShaderBackend::Glsl && is_nvidia) {
|
||||
const std::string driver_version = version.substr(13);
|
||||
const std::string_view driver_version = version.substr(13);
|
||||
const int version_major =
|
||||
std::atoi(driver_version.substr(0, driver_version.find(".")).data());
|
||||
if (version_major >= 495) {
|
||||
|
||||
Reference in New Issue
Block a user