mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 10:09:32 +01:00
Hook up the Smart 2D texture filtering option for retroarch
This commit is contained in:
1 parent
9d9c4e5c00
commit
b7321f5bbf
2 files changed
+19
No files matched your search
@@ -842,6 +842,15 @@ static void check_variables(CoreParameter &coreParam)
|
||||
g_Config.iTexFiltering = 4;
|
||||
}
|
||||
|
||||
var.key = "ppsspp_smart_2d_texture_filtering";
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
{
|
||||
if (!strcmp(var.value, "disabled"))
|
||||
g_Config.bSmart2DTexFiltering = false;
|
||||
else
|
||||
g_Config.bSmart2DTexFiltering = true;
|
||||
}
|
||||
|
||||
var.key = "ppsspp_texture_replacement";
|
||||
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
|
||||
{
|
||||
|
||||
@@ -584,6 +584,16 @@ struct retro_core_option_v2_definition option_defs_us[] = {
|
||||
},
|
||||
"Auto"
|
||||
},
|
||||
{
|
||||
"ppsspp_smart_2d_texture_filtering",
|
||||
"Smart 2D Texture Filtering",
|
||||
NULL,
|
||||
"Gets rid of some visual artifacts caused by unnecessary texture filtering in some 2D games, by switching to nearest filtering.",
|
||||
NULL,
|
||||
"video",
|
||||
BOOL_OPTIONS,
|
||||
"disabled"
|
||||
},
|
||||
{
|
||||
"ppsspp_texture_replacement",
|
||||
"Texture Replacement",
|
||||
|
||||
Reference in new issue
Block a user