X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture3d.cpp;h=7ea17b137e545d0fcc757173799f3598998788cb;hb=6f8c0c6c088be92804cb413c0234bfb817ef2d8d;hp=d04a17e1fbb38bf81c507f9798406f75ca3b2942;hpb=cb836adcf11f690188df9b7bc59f3fe87b67aaa7;p=libs%2Fgl.git diff --git a/source/texture3d.cpp b/source/texture3d.cpp index d04a17e1..7ea17b13 100644 --- a/source/texture3d.cpp +++ b/source/texture3d.cpp @@ -80,9 +80,9 @@ void Texture3D::image(unsigned level, PixelFormat fmt, DataType type, const void BindRestore _bind(this); if(ARB_texture_storage) - sub_image(level, 0, 0, 0, w, h, d, fmt, type, data); - else - glTexImage3D(target, level, ifmt, width, height, depth, 0, fmt, type, data); + return sub_image(level, 0, 0, 0, w, h, d, fmt, type, data); + + glTexImage3D(target, level, ifmt, width, height, depth, 0, fmt, type, data); allocated |= 1<