fixed incorrect enum names in SDL2 platform

This commit is contained in:
Noel Berry 2021-04-06 17:45:26 -07:00
parent 65f7194e4f
commit 78b8140f53

View File

@ -654,13 +654,13 @@ bool PlatformBackend::file_open(const char* path, PlatformBackend::FileHandle* h
case FileMode::OpenRead:
sdl_mode = "rb";
break;
case FileMode::OpenReadWrite:
case FileMode::Open:
sdl_mode = "r+b";
break;
case FileMode::CreateWrite:
sdl_mode = "wb";
break;
case FileMode::CreateReadWrite:
case FileMode::Create:
sdl_mode = "w+b";
break;
}