From 2be625a23b8a0aa2cacd77669e8cf83732eddfc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 8 Feb 2015 12:39:09 +0100 Subject: [PATCH] Platform: display also max cube map texture sizes. --- src/Magnum/Platform/magnum-info.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Magnum/Platform/magnum-info.cpp b/src/Magnum/Platform/magnum-info.cpp index e24582c26..120b129dc 100644 --- a/src/Magnum/Platform/magnum-info.cpp +++ b/src/Magnum/Platform/magnum-info.cpp @@ -35,6 +35,9 @@ #include "Magnum/BufferTexture.h" #endif #include "Magnum/Context.h" +#ifndef MAGNUM_TARGET_GLES +#include "Magnum/CubeMapTextureArray.h" +#endif #include "Magnum/DebugOutput.h" #include "Magnum/Extensions.h" #include "Magnum/Framebuffer.h" @@ -343,6 +346,7 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat #ifndef MAGNUM_TARGET_GLES2 _lvec(Texture3D::maxSize()) /* Checked ES2 version below */ #endif + _lvec(CubeMapTexture::maxSize()) #ifndef MAGNUM_TARGET_GLES if(c->isExtensionSupported()) { @@ -488,6 +492,12 @@ MagnumInfo::MagnumInfo(const Arguments& arguments): Platform::WindowlessApplicat _l(BufferTexture::offsetAlignment()) } + + if(c->isExtensionSupported()) { + _h(ARB::texture_cube_map_array) + + _l(CubeMapTextureArray::maxSize()) + } #endif #ifndef MAGNUM_TARGET_GLES2