X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fframebuffer.h;h=262e4248c3e251ddeb86e99ef335dc4e4ad501a3;hb=f2bb1caa233930e1148613e9d5daa2c29b0fe271;hp=0b9af1efd167e47addd3572eff9db4e80b87d3e1;hpb=f19366d32cc29287a2730cfba90893e407754081;p=libs%2Fgl.git diff --git a/source/core/framebuffer.h b/source/core/framebuffer.h index 0b9af1ef..262e4248 100644 --- a/source/core/framebuffer.h +++ b/source/core/framebuffer.h @@ -41,11 +41,10 @@ class Framebuffer: public FramebufferBackend private: struct Attachment { - Texture *tex; - unsigned level; - int layer; + Texture *tex = 0; + unsigned level = 0; + int layer = 0; - Attachment(); void set(Texture &, unsigned, int); void clear(); }; @@ -81,8 +80,8 @@ private: void update() const; void check_size(); void set_attachment(FrameAttachment, Texture &, unsigned, int, unsigned); -public: +public: /** Attaches a texture to the framebuffer. Only the attachment point portion of attch is considered; pixel format is ignored. The framebuffer must have a format and the format of the texture must match that defined