mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't try to go out of bounds. Still crashes without the Framebuffer.cpp edit, though..
This commit is contained in:
parent
8195804daa
commit
71087b41a2
1 changed files with 1 additions and 1 deletions
|
@ -1463,7 +1463,7 @@ namespace MainWindow
|
|||
// The Menu ID is contained in wParam, so subtract
|
||||
// ID_SHADERS_BASE and an additional 1 off it.
|
||||
index = (wParam - ID_SHADERS_BASE - 1);
|
||||
if (index >= 0) {
|
||||
if (index >= 0 && index < availableShaders.size()) {
|
||||
g_Config.sPostShaderName = availableShaders[index];
|
||||
|
||||
if (gpu)
|
||||
|
|
Loading…
Add table
Reference in a new issue