From 54cb177bb0118b14b94cafa685ac10c88e45da3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 26 Apr 2014 11:13:42 +0200 Subject: [PATCH] Properly initialize variables for texture limits in state tracker. And I was wondering how it is possible that there new NVidia drivers were allowing up to 32 PB textures on my humble laptop graphics :) --- src/Magnum/Implementation/TextureState.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Implementation/TextureState.cpp b/src/Magnum/Implementation/TextureState.cpp index 864e64716..a2b04cc2e 100644 --- a/src/Magnum/Implementation/TextureState.cpp +++ b/src/Magnum/Implementation/TextureState.cpp @@ -36,7 +36,11 @@ namespace Magnum { namespace Implementation { -TextureState::TextureState(Context& context, std::vector& extensions): maxTextureUnits(0), maxLodBias(0.0f), maxMaxAnisotropy(0.0f), currentTextureUnit(0) +TextureState::TextureState(Context& context, std::vector& extensions): maxSize{}, max3DSize{}, maxArrayLayers{}, maxCubeMapSize{}, + #ifndef MAGNUM_TARGET_GLES + maxRectangleSize{}, maxBufferSize{}, + #endif + maxTextureUnits(0), maxLodBias(0.0f), maxMaxAnisotropy(0.0f), currentTextureUnit(0) #ifndef MAGNUM_TARGET_GLES , maxColorSamples(0), maxDepthSamples(0), maxIntegerSamples(0), bufferOffsetAlignment(0) #endif