Use Pixel Buffer Objects (OpenGL)

This commit is contained in:
FunkyFr3sh 2017-11-16 22:21:13 +01:00
parent f28955e1f8
commit 8f3b947eb1
4 changed files with 137 additions and 18 deletions

View file

@ -817,10 +817,22 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk
"posY=-1\n"
"; Screenshot Hotkey, default = CTRL + G\n"
"screenshotKey=G\n"
"; Use Pixel Buffer Objects (OpenGL only)\n"
"opengl_pbo=false\n"
, fh);
fclose(fh);
}
GetPrivateProfileStringA("ddraw", "opengl_pbo", "FALSE", tmp, sizeof(tmp), SettingsIniPath);
if (tolower(tmp[0]) == 'n' || tolower(tmp[0]) == 'f' || tolower(tmp[0]) == 'd' || tmp[0] == '0')
{
This->opengl_pbo = FALSE;
}
else
{
This->opengl_pbo = TRUE;
}
GetPrivateProfileStringA("ddraw", "windowed", "TRUE", tmp, sizeof(tmp), SettingsIniPath);
if (tolower(tmp[0]) == 'n' || tolower(tmp[0]) == 'f' || tolower(tmp[0]) == 'd' || tmp[0] == '0')
{