summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-11-22 01:55:20 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-11-22 01:55:20 +0000
commit09b15a9d10377216924614dcc5495383c1b0b47c (patch)
tree6a223e91cb3b7accffc70df30f9e3ff2f2549a54 /Graphics/GraphicsEngineOpenGL
parentiOS build: switched to using CMake-provided toolchain from custom toolchain (diff)
downloadDiligentCore-09b15a9d10377216924614dcc5495383c1b0b47c.tar.gz
DiligentCore-09b15a9d10377216924614dcc5495383c1b0b47c.zip
Render device GL: fixed issue with cube array support detection on iOS
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
index 5aae4d90..ad227ef0 100644
--- a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
@@ -1099,14 +1099,17 @@ void RenderDeviceGLImpl::TestTextureFormat(TEXTURE_FORMAT TexFormat)
{
TexFormatInfo.Dimensions |= RESOURCE_DIMENSION_SUPPORT_TEX_CUBE;
- if (CreateTestGLTexture(
- ContextState, GL_TEXTURE_CUBE_MAP_ARRAY,
- [&]() //
- {
- glTexStorage3D(GL_TEXTURE_CUBE_MAP_ARRAY, 1, GLFmt, TestTextureDim, TestTextureDim, 6);
- }))
+ if (m_DeviceCaps.TexCaps.CubemapArraysSupported)
{
- TexFormatInfo.Dimensions |= RESOURCE_DIMENSION_SUPPORT_TEX_CUBE_ARRAY;
+ if (CreateTestGLTexture(
+ ContextState, GL_TEXTURE_CUBE_MAP_ARRAY,
+ [&]() //
+ {
+ glTexStorage3D(GL_TEXTURE_CUBE_MAP_ARRAY, 1, GLFmt, TestTextureDim, TestTextureDim, 6);
+ }))
+ {
+ TexFormatInfo.Dimensions |= RESOURCE_DIMENSION_SUPPORT_TEX_CUBE_ARRAY;
+ }
}
}