aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics
diff options
context:
space:
mode:
authorBaronKiko <BaronKiko@users.noreply.github.com>2019-03-17 22:55:02 +0000
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2019-03-18 09:55:02 +1100
commit1b2e430e887fc2eac372c46255c18ecceb032fd1 (patch)
tree2fa149a17c2f140175ea79952ccd30cd2e2ab063 /Ryujinx.Graphics
parentefebd8f94de03ef5cab63803f0cf37fc39258682 (diff)
Cubemap array support (#649)
Diffstat (limited to 'Ryujinx.Graphics')
-rw-r--r--Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs b/Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs
index 21edd89e..191f6e3d 100644
--- a/Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs
+++ b/Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs
@@ -165,6 +165,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
data.Length,
data);
break;
+ // Cube map arrays are just 2D texture arrays with 6 entries
+ // per cube map so we can handle them in the same way
+ case TextureTarget.TextureCubeMapArray:
case TextureTarget.Texture2DArray:
GL.CompressedTexImage3D(
target,
@@ -263,6 +266,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
type,
data);
break;
+ // Cube map arrays are just 2D texture arrays with 6 entries
+ // per cube map so we can handle them in the same way
+ case TextureTarget.TextureCubeMapArray:
case TextureTarget.Texture2DArray:
GL.TexImage3D(
target,