Parcourir la source

Add missing TextureCubeMapArray texture type entry (#657)

* Add missing TextureCubeMapArray texture type entry

* Duplicate comment from other Create path
jduncanator il y a 7 ans
Parent
commit
af65ed3930
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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,