]> git.sesse.net Git - movit/blobdiff - widgets.cpp
Move calculation of normalized position for the vignette into the vertex shader.
[movit] / widgets.cpp
index 53b0eacbc5811d3b72fcbcfefe4dc53e039d2115..a17039118174d7d1f3d138009e54878abcad4f03 100644 (file)
@@ -12,7 +12,7 @@
 
 void draw_hsv_wheel(float y, float rad, float theta, float value)
 {
-       glUseProgramObjectARB(0);
+       glUseProgram(0);
        check_error();
        glActiveTexture(GL_TEXTURE0);
        check_error();
@@ -81,7 +81,7 @@ void draw_hsv_wheel(float y, float rad, float theta, float value)
 
 void draw_saturation_bar(float y, float saturation)
 {
-       glUseProgramObjectARB(0);
+       glUseProgram(0);
        check_error();
 
        // value slider