mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-16 19:38:57 +02: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:
parent
6b01c13975
commit
ecf7af0cde
2 changed files with 17 additions and 19 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue