mirror of https://github.com/snes9xgit/snes9x.git
Win32: add config option to disable OpenGL PBO usage
This commit is contained in:
parent
a4f56c08e7
commit
54d8e77a96
|
@ -604,6 +604,9 @@ void COpenGL::EnumModes(std::vector<dMode> *modeVector)
|
|||
|
||||
bool COpenGL::LoadPBOFunctions()
|
||||
{
|
||||
if(GUI.OGLdisablePBOs)
|
||||
return false;
|
||||
|
||||
if(pboFunctionsLoaded)
|
||||
return true;
|
||||
|
||||
|
|
|
@ -868,6 +868,7 @@ void WinRegisterConfigItems()
|
|||
AddBoolC("ShaderEnabled", GUI.shaderEnabled, false, "true to use pixel shader (if supported by output method)");
|
||||
AddStringC("Direct3D:D3DShader", GUI.D3DshaderFileName, MAX_PATH, "", "shader filename for Direct3D mode (HLSL effect file or CG shader");
|
||||
AddStringC("OpenGL:OGLShader", GUI.OGLshaderFileName, MAX_PATH, "", "shader filename for OpenGL mode (bsnes-style XML shader or CG shader)");
|
||||
AddBoolC("OpenGL:DisablePBOs", GUI.OGLdisablePBOs, false, "do not use PBOs in OpenGL mode, even if the video card supports them");
|
||||
AddBoolC("ExtendHeight", GUI.HeightExtend, false, "true to display an extra 15 pixels at the bottom, which few games use. Also increases AVI output size from 256x224 to 256x240.");
|
||||
AddBoolC("AlwaysCenterImage", GUI.AlwaysCenterImage,false, "true to center the image even if larger than window");
|
||||
AddIntC("Window:Width", GUI.window_size.right, 512, "256=1x, 512=2x, 768=3x, 1024=4x, etc. (usually)");
|
||||
|
|
|
@ -4834,7 +4834,7 @@ INT_PTR CALLBACK DlgInfoProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
case 14:strcat(romtext, "Unknown region 14");break;
|
||||
default:strcat(romtext, "Unknown region 15");break;
|
||||
}
|
||||
SendDlgItemMessageA(hDlg, IDC_ROM_DATA, WM_SETTEXT, 0, (LPARAM)romtext);
|
||||
SendDlgItemMessage(hDlg, IDC_ROM_DATA, WM_SETTEXT, 0, (LPARAM)((TCHAR *)_tFromChar(romtext)));
|
||||
break;
|
||||
}
|
||||
case WM_CTLCOLORSTATIC:
|
||||
|
|
|
@ -320,6 +320,8 @@ struct sGUI {
|
|||
TCHAR D3DshaderFileName[MAX_PATH];
|
||||
TCHAR OGLshaderFileName[MAX_PATH];
|
||||
|
||||
bool OGLdisablePBOs;
|
||||
|
||||
bool IgnoreNextMouseMove;
|
||||
RECT window_size;
|
||||
bool window_maximized;
|
||||
|
|
Loading…
Reference in New Issue