summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2020-11-25 15:58:54 +0000
committerazhirnov <zh1dron@gmail.com>2020-11-25 15:58:54 +0000
commit05d6e525008853f21af92c29d5d943a7ebda8e27 (patch)
tree8c37e704b4f14d9d2edf7cda61dd0493b36bf2d4 /Graphics/GraphicsEngineOpenGL
parentRemoved SWAP_CHAIN_USAGE_UNORDERED_ACCESS, fixed shader group checks (diff)
parentUpdated volk submodule (diff)
downloadDiligentCore-05d6e525008853f21af92c29d5d943a7ebda8e27.tar.gz
DiligentCore-05d6e525008853f21af92c29d5d943a7ebda8e27.zip
Merge branch 'master' into ray_tracing_2
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 c55b958f..6c272f88 100644
--- a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
@@ -1132,14 +1132,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;
+ }
}
}