]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture1d.h
Add some checks for invalid arguments
[libs/gl.git] / source / core / texture1d.h
index 7ef55f80fdf17ec9c295efff74f2e914dd91e975..f99d3ef0713daa64be029a59b9d2d2a0a30a87e9 100644 (file)
@@ -46,7 +46,7 @@ public:
        /** Replaces a range of texels in the texture.  Allocated storage must
        exist.  The image data is interpreted according to the storage format and
        the range must be fully inside the selected mipmap level. */
-       void sub_image(unsigned level, int x, unsigned wd, const void *);
+       void sub_image(unsigned level, unsigned x, unsigned wd, const void *);
 
        virtual void image(const Graphics::Image &, unsigned = 0);