X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexturecube.cpp;h=6935e582f5932cd7c000d844c56c976f2c47b0e9;hb=cd1f63c76463bb5ba78f6c3bb13aa40a97f1e004;hp=a5874a6a66bbe9c64cbbec58e7e1477761c5e8e7;hpb=41b4cb3002f3551ce1bd6fdf15994ee7bc523788;p=libs%2Fgl.git diff --git a/source/texturecube.cpp b/source/texturecube.cpp index a5874a6a..6935e582 100644 --- a/source/texturecube.cpp +++ b/source/texturecube.cpp @@ -54,7 +54,7 @@ void TextureCube::image(TextureCubeFace face, unsigned level, PixelFormat fmt, D unsigned s = get_level_size(level); if(s==0) - throw invalid_argument("TextureCube::image"); + throw out_of_range("TextureCube::image"); Bind _bind(this, true); glTexImage2D(face, level, ifmt, s, s, 0, fmt, type, data);