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
std::vector<UniformBlockInfo> uniform_blocks;
std::vector<UniformInfo> uniforms;
- LayoutHash layout_hash;
+ LayoutHash layout_hash = 0;
std::vector<AttributeInfo> attributes;
unsigned n_clip_distances = 0;
Stage::Stage(Stage::Type t):
- type(t),
- previous(0)
+ type(t)
{ }
const char *Stage::get_stage_name(Type type)
};
Type type;
- Stage *previous;
+ Stage *previous = 0;
Block content;
std::map<std::string, TypeDeclaration *> types;
std::map<std::string, InterfaceBlock *> interface_blocks;
renderer.set_stencil_test(&s.get_stencil_test());
renderer.set_blend(&s.get_blend());
- if (const Lighting *lighting = s.get_lighting())
+ if(const Lighting *lighting = s.get_lighting())
renderer.add_shader_data(lighting->get_shader_data());
if(const Renderable *renderable = s.get_renderable())