Use Pixel Buffer Objects (OpenGL)
This commit is contained in:
parent
f28955e1f8
commit
8f3b947eb1
4 changed files with 137 additions and 18 deletions
12
src/main.c
12
src/main.c
|
@ -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')
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue