diff --git a/projects/clr/hipamd/src/cl_gl_amd.hpp b/projects/clr/hipamd/src/cl_gl_amd.hpp index 625082c8f9..b804ba0ff0 100644 --- a/projects/clr/hipamd/src/cl_gl_amd.hpp +++ b/projects/clr/hipamd/src/cl_gl_amd.hpp @@ -175,7 +175,7 @@ public: GLenum glCubemapFace = 0) : Image(amdContext, clType, clFlags, format, width, height, depth, Format(format).getElementSize() * width, - Format(format).getElementSize() * width * depth) + Format(format).getElementSize() * width * height) , GLObject(glTarget, gluiName, gliMipLevel, glInternalFormat, static_cast(width), static_cast(height), static_cast(depth), clGLType, glCubemapFace,numSamples)