From f831be703173a18db26f37b6c066cab191653180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 20 Dec 2019 20:04:29 +0100 Subject: [PATCH] GL: clang-cl is this what you want? --- src/Magnum/GL/AbstractTexture.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Magnum/GL/AbstractTexture.h b/src/Magnum/GL/AbstractTexture.h index bb9bd4b54..910248cc8 100644 --- a/src/Magnum/GL/AbstractTexture.h +++ b/src/Magnum/GL/AbstractTexture.h @@ -829,6 +829,21 @@ inline GLuint AbstractTexture::release() { return id; } +#ifdef CORRADE_TARGET_CLANG_CL +/* Otherwise Clang-CL complains these functions are not defined */ +#ifndef MAGNUM_TARGET_GLES +extern template void AbstractTexture::subImageImplementationSvga3DSliceBySlice<&AbstractTexture::subImage2DImplementationDefault>(GLint, const Vector2i&, const Vector2i&, PixelFormat, PixelType, const GLvoid*, const PixelStorage&); +extern template void AbstractTexture::subImageImplementationSvga3DSliceBySlice<&AbstractTexture::subImage2DImplementationDSA>(GLint, const Vector2i&, const Vector2i&, PixelFormat, PixelType, const GLvoid*, const PixelStorage&); +#endif + +#ifndef MAGNUM_TARGET_WEBGL +extern template void AbstractTexture::subImageImplementationSvga3DSliceBySlice<&AbstractTexture::subImage3DImplementationDefault>(GLint, const Vector3i&, const Vector3i&, PixelFormat, PixelType, const GLvoid*, const PixelStorage&); +#ifndef MAGNUM_TARGET_GLES +extern template void AbstractTexture::subImageImplementationSvga3DSliceBySlice<&AbstractTexture::subImage3DImplementationDSA>(GLint, const Vector3i&, const Vector3i&, PixelFormat, PixelType, const GLvoid*, const PixelStorage&); +#endif +#endif +#endif + }} #endif