Browse Source

GL: imageSize is not available for GLES < 3.1

Fixes the following compile error:

magnum/src/Magnum/GL/Texture.h:747:44: error: no member named 'imageSize' in 'Magnum::GL::AbstractTexture::DataHelper<2>'
            return DataHelper<dimensions>::imageSize(*this, level);
                                           ^
pull/365/head
Mandeep Singh Baines 7 years ago
parent
commit
acaf35ad69
  1. 2
      src/Magnum/GL/Texture.h

2
src/Magnum/GL/Texture.h

@ -724,7 +724,7 @@ template<UnsignedInt dimensions> class Texture: public AbstractTexture {
return *this;
}
#ifndef MAGNUM_TARGET_GLES2
#if !defined(MAGNUM_TARGET_GLES2) && !defined(MAGNUM_TARGET_WEBGL)
/**
* @brief Image size in given mip level
*

Loading…
Cancel
Save