We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a8eef commit 3f1acffCopy full SHA for 3f1acff
Graphics/GraphicsEngineOpenGL/src/TextureBaseGL.cpp
@@ -130,8 +130,9 @@ static TextureDesc GetTextureDescFromGLHandle(DeviceContextGLImpl *pDeviceContex
130
VERIFY(TexDesc.Depth != 0, "Texture depth query is not supported; it must be specified by the texture description.");
131
#endif
132
}
133
- else
134
- TexDesc.Depth = 1;
+
+ if (TexDesc.Type == RESOURCE_DIM_TEX_1D || TexDesc.Type == RESOURCE_DIM_TEX_2D)
135
+ TexDesc.ArraySize = 1; // TexDesc.Depth also
136
137
#if GL_TEXTURE_INTERNAL_FORMAT
138
GLint GlFormat = 0;
0 commit comments