X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fpixelstore.cpp;h=e1a7cc0ef9ea378bce5db24f7035500b00829a36;hp=629162cd890b1a9dfd760bc47ddc60a41ef784a9;hb=71240e5c5ef7165313664ee9fe81df95c0eff10b;hpb=57de40e1e802e44ae5b4caa67b0bb8763828b5c3 diff --git a/source/pixelstore.cpp b/source/pixelstore.cpp index 629162cd..e1a7cc0e 100644 --- a/source/pixelstore.cpp +++ b/source/pixelstore.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "gl.h" #include "pixelformat.h" #include "pixelstore.h" @@ -52,6 +53,7 @@ void PixelStore::update_parameter(int mask) const void PixelStore::set_canvas_size(unsigned w, unsigned h) { + static Require _req(EXT_unpack_subimage); row_length = w; image_height = h; update_parameter(SIZE); @@ -59,6 +61,7 @@ void PixelStore::set_canvas_size(unsigned w, unsigned h) void PixelStore::set_origin(unsigned x, unsigned y, unsigned z) { + static Require _req(EXT_unpack_subimage); if(z>0) static Require _req3d(EXT_texture3D); skip_pixels = x;