Browse Source

Added missing const.

pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
a1c37258d6
  1. 2
      src/AbstractTexture.cpp
  2. 4
      src/AbstractTexture.h

2
src/AbstractTexture.cpp

@ -435,7 +435,7 @@ void AbstractTexture::invalidateSubImplementationARB(GLint level, const Vector3i
#ifndef DOXYGEN_GENERATING_OUTPUT
#ifndef MAGNUM_TARGET_GLES2
namespace Implementation {
template<std::uint8_t dimensions> GLvoid* ImageHelper<BufferImage<dimensions>>::dataOrPixelUnpackBuffer(BufferImage<dimensions>* image) {
template<std::uint8_t dimensions> const GLvoid* ImageHelper<BufferImage<dimensions>>::dataOrPixelUnpackBuffer(BufferImage<dimensions>* image) {
image->buffer()->bind(Buffer::Target::PixelUnpack);
return nullptr;
}

4
src/AbstractTexture.h

@ -1278,7 +1278,7 @@ class MAGNUM_EXPORT AbstractTexture {
#ifndef DOXYGEN_GENERATING_OUTPUT
namespace Implementation {
template<class Image> struct ImageHelper {
inline static GLvoid* dataOrPixelUnpackBuffer(Image* image) {
inline static const GLvoid* dataOrPixelUnpackBuffer(Image* image) {
#ifndef MAGNUM_TARGET_GLES2
Buffer::unbind(Buffer::Target::PixelUnpack);
#endif
@ -1288,7 +1288,7 @@ namespace Implementation {
#ifndef MAGNUM_TARGET_GLES2
template<std::uint8_t dimensions> struct MAGNUM_EXPORT ImageHelper<BufferImage<dimensions>> {
static GLvoid* dataOrPixelUnpackBuffer(BufferImage<dimensions>* image);
static const GLvoid* dataOrPixelUnpackBuffer(BufferImage<dimensions>* image);
};
#endif
}

Loading…
Cancel
Save