X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbackends%2Fopengl%2Ftexture1d_backend.cpp;h=a270468b141883437f46d51de02a54888f69ee6f;hb=f73e671dcb36c097647cddbf5b1eaaad2ffc9299;hp=a94a5c44ac9d99610d38003b632b2a1d7dfe9dd1;hpb=9e63512930bc7dace6dc169c65161961e5dcfcf6;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture1d_backend.cpp b/source/backends/opengl/texture1d_backend.cpp index a94a5c44..a270468b 100644 --- a/source/backends/opengl/texture1d_backend.cpp +++ b/source/backends/opengl/texture1d_backend.cpp @@ -62,5 +62,11 @@ void OpenGLTexture1D::sub_image(unsigned level, int x, unsigned wd, const void * } } +size_t OpenGLTexture1D::get_data_size() const +{ + unsigned width = static_cast(this)->width; + return id ? width*get_pixel_size(storage_fmt) : 0; +} + } // namespace GL } // namespace Msp