aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-08-25 16:39:08 -0300
committergdkchan <gab.dark.100@gmail.com>2018-08-25 16:39:08 -0300
commit43c4e7c78d98b09e8dc51e3450396cd99b2b3a92 (patch)
tree2c2205be004df3b68c2f375084fc318f396bdcf7 /Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs
parenta42ab2e40cae5db96cc58634f1e70c4e31bb095d (diff)
Use mirrored texture wraps when available (#361)
Diffstat (limited to 'Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs b/Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs
index 69fce6d3..5ad42298 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OGLExtension.cs
@@ -8,6 +8,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
private static bool EnhancedLayouts;
+ private static bool TextureMirrorClamp;
+
public static bool HasEnhancedLayouts()
{
EnsureInitialized();
@@ -15,6 +17,13 @@ namespace Ryujinx.Graphics.Gal.OpenGL
return EnhancedLayouts;
}
+ public static bool HasTextureMirrorClamp()
+ {
+ EnsureInitialized();
+
+ return TextureMirrorClamp;
+ }
+
private static void EnsureInitialized()
{
if (Initialized)
@@ -23,6 +32,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
}
EnhancedLayouts = HasExtension("GL_ARB_enhanced_layouts");
+
+ TextureMirrorClamp = HasExtension("GL_EXT_texture_mirror_clamp");
}
private static bool HasExtension(string Name)