]> git.sesse.net Git - movit/blobdiff - util.cpp
Less old-style GLSL extension use.
[movit] / util.cpp
index 2176786978544994fcb733a4a2bea5f6fb9f77f5..f1b838a2cecc12504bb4c4217a083136de750c60 100644 (file)
--- a/util.cpp
+++ b/util.cpp
@@ -65,9 +65,9 @@ std::string read_file(const std::string &filename)
        return std::string(buf, len);
 }
 
-GLhandleARB compile_shader(const std::string &shader_src, GLenum type)
+GLuint compile_shader(const std::string &shader_src, GLenum type)
 {
-       GLhandleARB obj = glCreateShaderObjectARB(type);
+       GLuint obj = glCreateShader(type);
        const GLchar* source[] = { shader_src.data() };
        const GLint length[] = { shader_src.size() };
        glShaderSource(obj, 1, source, length);