From 1b2e430e887fc2eac372c46255c18ecceb032fd1 Mon Sep 17 00:00:00 2001 From: BaronKiko Date: Sun, 17 Mar 2019 22:55:02 +0000 Subject: [PATCH] Cubemap array support (#649) --- Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs b/Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs index 21edd89ee..191f6e3de 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,