Przeglądaj źródła

Add missing TextureCubeMapArray texture type entry (#657)

* Add missing TextureCubeMapArray texture type entry

* Duplicate comment from other Create path
jduncanator 7 lat temu
rodzic
commit
af65ed3930
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs

+ 3 - 0
Ryujinx.Graphics/Gal/OpenGL/OglTexture.cs

@@ -95,6 +95,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
                         type,
                         IntPtr.Zero);
                     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,