Unverified Commit 86dc2b78 authored by Bobby Smith's avatar Bobby Smith Committed by GitHub
Browse files

[GLN64] Add EnableTexCoordBounds core option

parent a3801217
Pipeline #38583 passed with stages
in 4 minutes and 34 seconds
......@@ -59,7 +59,7 @@ void Config::resetToDefaults()
graphics2D.correctTexrectCoords = tcDisable;
graphics2D.enableNativeResTexrects = NativeResTexrectsMode::ntDisable;
graphics2D.bgMode = BGMode::bgOnePiece;
graphics2D.enableTexCoordBounds = 1;
graphics2D.enableTexCoordBounds = 0;
frameBufferEmulation.enable = 1;
frameBufferEmulation.copyDepthToRDRAM = cdSoftwareRender;
......
......@@ -199,6 +199,7 @@ extern "C" void Config_LoadConfig()
config.frameBufferEmulation.overscanPAL.bottom = OverscanBottom;
config.graphics2D.correctTexrectCoords = CorrectTexrectCoords;
config.graphics2D.enableTexCoordBounds = EnableTexCoordBounds;
config.graphics2D.enableNativeResTexrects = enableNativeResTexrects;
config.graphics2D.bgMode = BackgroundMode;
......
......@@ -91,6 +91,7 @@ extern uint32_t EnableDitheringQuantization;
extern uint32_t RDRAMImageDitheringMode;
extern uint32_t EnableHWLighting;
extern uint32_t CorrectTexrectCoords;
extern uint32_t EnableTexCoordBounds;
extern uint32_t enableNativeResTexrects;
extern uint32_t enableLegacyBlending;
extern uint32_t EnableCopyColorToRDRAM;
......
......@@ -163,6 +163,7 @@ uint32_t RDRAMImageDitheringMode = 0;
uint32_t EnableDitheringQuantization = 0;
uint32_t EnableHWLighting = 0;
uint32_t CorrectTexrectCoords = 0;
uint32_t EnableTexCoordBounds = 0;
uint32_t enableNativeResTexrects = 0;
uint32_t enableLegacyBlending = 0;
uint32_t EnableCopyColorToRDRAM = 0;
......@@ -1018,6 +1019,13 @@ static void update_variables(bool startup)
CorrectTexrectCoords = 0;
}
var.key = CORE_NAME "-EnableTexCoordBounds";
var.value = NULL;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
EnableTexCoordBounds = !strcmp(var.value, "False") ? 0 : 1;
}
var.key = CORE_NAME "-BackgroundMode";
var.value = NULL;
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
......
......@@ -361,6 +361,17 @@ struct retro_core_option_definition option_defs_us[] = {
},
"Off"
},
{
CORE_NAME "-EnableTexCoordBounds",
"Enable native-res boundaries for texture coordinates",
"(GLN64) Bound texture rectangle texture coordinates to the values they take in native resolutions. It prevents garbage due to fetching out of texture bounds, but can result in hard edges.",
{
{"False", NULL},
{"True", NULL},
{NULL, NULL},
},
"False"
},
{
CORE_NAME "-EnableNativeResTexrects",
"Native res. 2D texrects",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment