X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fprogram.h;h=8c1356c2678a7ec306ddfe60368d12dd5805caac;hb=d971f8d4848c0b3b453c626a2dafe19445e3e5a8;hp=d2032a5cd46843e36def08c91f8a95d699025bd1;hpb=a170be7d2b295c4a3bbcea6585634bece3e1638b;p=libs%2Fgl.git diff --git a/source/program.h b/source/program.h index d2032a5c..8c1356c2 100644 --- a/source/program.h +++ b/source/program.h @@ -81,7 +81,6 @@ private: UniformMap uniforms; LayoutHash uniform_layout_hash; AttributeMap attributes; - bool legacy_vars; public: /// Constructs an empty Program with no Shaders attached. @@ -112,6 +111,7 @@ public: void link(); private: + static void require_type(GLenum); void query_uniforms(); void query_uniform_blocks(const std::vector &); void query_attributes(); @@ -131,8 +131,6 @@ public: const AttributeInfo &get_attribute_info(const std::string &) const; int get_attribute_location(const std::string &) const; - bool uses_legacy_variables() const { return legacy_vars; } - void bind() const; static void unbind(); };