Skip to content

Commit 747722d

Browse files
committed
Merge pull request #109299 from BlueCube3310/compat-cube-fix
Compatibility: Fix cubemap faces order when setting texture data
2 parents 9b96eaa + 356b1ab commit 747722d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gles3/storage/texture_storage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ TextureStorage *TextureStorage::get_singleton() {
5050
}
5151

5252
static const GLenum _cube_side_enum[6] = {
53-
GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
5453
GL_TEXTURE_CUBE_MAP_POSITIVE_X,
55-
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
54+
GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
5655
GL_TEXTURE_CUBE_MAP_POSITIVE_Y,
57-
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
56+
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
5857
GL_TEXTURE_CUBE_MAP_POSITIVE_Z,
58+
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
5959
};
6060

6161
TextureStorage::TextureStorage() {

0 commit comments

Comments
 (0)