]> git.tdb.fi Git - libs/gl.git/commitdiff
Require ARB_shader_objects in Shader constructor
authorMikko Rasa <tdb@tdb.fi>
Wed, 25 Sep 2019 16:33:11 +0000 (19:33 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 25 Sep 2019 16:33:11 +0000 (19:33 +0300)
source/shader.cpp

index 0c356f5f460826f7e97877881d15f35ba3db36f0..d1938ba702fd0c629133e7e588ffebc816fa6d92 100644 (file)
@@ -27,6 +27,7 @@ Shader::Shader(GLenum t, const string &src)
 
 void Shader::init(GLenum t)
 {
+       static Require _req_base(ARB_shader_objects);
        compiled = false;
 
        if(t==GL_FRAGMENT_SHADER)