Novidia: support (and allow forcing) BGRA texture uploads for extra performance

This commit is contained in:
somewhatlurker
2020-07-25 14:34:53 +10:00
parent 2af53ce087
commit faf460be9c
3 changed files with 48 additions and 2 deletions
@@ -25,6 +25,8 @@ int __stdcall stub() { return 1; }
bool use_TexSubImage;
bool force_BGRA_upload;
GLint tex_upload_format;
std::wstring ExePath() {
WCHAR buffer[MAX_PATH];
@@ -45,4 +47,5 @@ LPCWSTR CONFIG_FILE = CONFIG_FILE_STRING.c_str();
void loadConfig()
{
use_TexSubImage = GetPrivateProfileIntW(L"general", L"use_TexSubImage", 1, CONFIG_FILE) > 0 ? true : false;
force_BGRA_upload = GetPrivateProfileIntW(L"general", L"force_BGRA_upload", 1, CONFIG_FILE) > 0 ? true : false;
}