]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture1d.cpp
Move internal format management to the Texture base class
[libs/gl.git] / source / texture1d.cpp
index 32053e83fa9bd8ad9231720c79defa3474229415..6affe8999a2414ae61b950c8f3c232a9269e4af1 100644 (file)
@@ -13,7 +13,6 @@ namespace GL {
 
 Texture1D::Texture1D():
        Texture(GL_TEXTURE_1D),
-       ifmt(RGB),
        width(0),
        allocated(0)
 {
@@ -27,11 +26,7 @@ void Texture1D::storage(PixelFormat fmt, unsigned wd)
        if(wd==0)
                throw invalid_argument("Texture1D::storage");
 
-       if(MSP_sized_internal_formats)
-               fmt = get_sized_pixelformat(fmt);
-       require_pixelformat(fmt);
-
-       ifmt = fmt;
+       set_internal_format(fmt);
        width = wd;
 }