X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=flat_input.h;fp=flat_input.h;h=7875e2c793ce91778b2ae5598bc63da1112434fb;hp=33c685bcacd6fa9c30487ea35b18f07f5f28d455;hb=358df88f77e4f8ae2ead71a06dc36bf5402d9b5d;hpb=18fdebc534adc6b7a4c36b290b01d598bcb671bc diff --git a/flat_input.h b/flat_input.h index 33c685b..7875e2c 100644 --- a/flat_input.h +++ b/flat_input.h @@ -86,10 +86,7 @@ public: invalidate_pixel_data(); } - void invalidate_pixel_data() - { - needs_update = true; - } + void invalidate_pixel_data(); void set_pitch(unsigned pitch) { assert(!finalized); @@ -104,9 +101,9 @@ public: private: ImageFormat image_format; MovitPixelFormat pixel_format; - GLenum format, type; + GLenum internal_format, format, type; GLuint pbo, texture_num; - bool needs_update, finalized; + bool finalized; int output_linear_gamma, needs_mipmaps; unsigned width, height, pitch; const void *pixel_data;