]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture3d.h
Add some checks for invalid arguments
[libs/gl.git] / source / core / texture3d.h
index 9d5104c91e42892de2d9189b31291f4352c98e2f..1fbcf4ee43044436a38cfdef6a2786762edd1ed6 100644 (file)
@@ -52,7 +52,7 @@ public:
        /** Replaces a cuboid-shaped region of the texture.  Allocated storage must
        exist.  The image data is interpreted according to the storage format and
        the region must be fully inside the texture. */
-       void sub_image(unsigned level, int x, int y, int z, unsigned wd, unsigned ht, unsigned dp, const void *);
+       void sub_image(unsigned level, unsigned x, unsigned y, unsigned z, unsigned wd, unsigned ht, unsigned dp, const void *);
 
        /** Sets the texture's contents from an image.  The image is treated as a
        stack of square layers and its height must be divisible by its width.  If