]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.h
Add some checks for invalid arguments
[libs/gl.git] / source / core / texture2d.h
index 427e179563943b312c7ea4f87b7ae3a5595e09db..1c750bd1e87d301aed2f79799688e410ef1793bd 100644 (file)
@@ -50,7 +50,7 @@ public:
        /** Replaces a rectangular 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 selected mipmap level. */
-       void sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht, const void *);
+       void sub_image(unsigned level, unsigned x, unsigned y, unsigned wd, unsigned ht, const void *);
 
        virtual void image(const Graphics::Image &, unsigned = 0);