Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
mupen64plus-libretro-nx
Commits
86dc2b78
Unverified
Commit
86dc2b78
authored
Jul 15, 2021
by
Bobby Smith
Committed by
GitHub
Jul 15, 2021
Browse files
[GLN64] Add EnableTexCoordBounds core option
parent
a3801217
Pipeline
#38583
passed with stages
in 4 minutes and 34 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
GLideN64/src/Config.cpp
View file @
86dc2b78
...
...
@@ -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
;
...
...
custom/GLideN64/mupenplus/Config_mupenplus.cpp
View file @
86dc2b78
...
...
@@ -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
;
...
...
custom/mupen64plus-next_common.h
View file @
86dc2b78
...
...
@@ -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
;
...
...
libretro/libretro.c
View file @
86dc2b78
...
...
@@ -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
)
...
...
libretro/libretro_core_options.h
View file @
86dc2b78
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment