X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture2dmultisample_backend.cpp;h=e6ee7614b028b88c1c56ea1e11a78e3ead733598;hp=c9faa85e99a6dfbee471356db3aa8e941cd40068;hb=f73e671dcb36c097647cddbf5b1eaaad2ffc9299;hpb=9e63512930bc7dace6dc169c65161961e5dcfcf6 diff --git a/source/backends/opengl/texture2dmultisample_backend.cpp b/source/backends/opengl/texture2dmultisample_backend.cpp index c9faa85e..e6ee7614 100644 --- a/source/backends/opengl/texture2dmultisample_backend.cpp +++ b/source/backends/opengl/texture2dmultisample_backend.cpp @@ -41,5 +41,13 @@ void OpenGLTexture2DMultisample::allocate() apply_swizzle(); } +size_t OpenGLTexture2DMultisample::get_data_size() const +{ + unsigned width = static_cast(this)->width; + unsigned height = static_cast(this)->height; + unsigned samples = static_cast(this)->samples; + return width*height*get_pixel_size(format)*samples; +} + } // namespace GL } // namespace Msp