]> git.sesse.net Git - nageru/commitdiff
Fix a warning.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 4 Oct 2015 15:31:18 +0000 (17:31 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 4 Oct 2015 15:31:18 +0000 (17:31 +0200)
glwidget.cpp
glwidget.h

index 8ccba20f69de87226e422316bbbd37216963064a..17f7832378c67dd59c7e45183bd5bda1d23e2860 100644 (file)
@@ -76,8 +76,8 @@ void GLWidget::initializeGL()
        };
        glGenVertexArrays(1, &vao);
        glBindVertexArray(vao);
-       GLuint position_vbo = movit::fill_vertex_attribute(program_num, "position", 2, GL_FLOAT, sizeof(vertices), vertices);
-       GLuint texcoord_vbo = movit::fill_vertex_attribute(program_num, "texcoord", 2, GL_FLOAT, sizeof(vertices), vertices);  // Same as vertices.
+       position_vbo = movit::fill_vertex_attribute(program_num, "position", 2, GL_FLOAT, sizeof(vertices), vertices);
+       texcoord_vbo = movit::fill_vertex_attribute(program_num, "texcoord", 2, GL_FLOAT, sizeof(vertices), vertices);  // Same as vertices.
 
 #if 0
        // Cleanup.
index 0d74480802ef37224707f53a1b2906591ee43209..d2ff50cb5017ea48ba3698d5febafa8de604252e 100644 (file)
@@ -22,7 +22,7 @@ protected:
 private:
        movit::ResourcePool *resource_pool;
        GLuint vao, program_num;
-
+       GLuint position_vbo, texcoord_vbo;
 };
 
 #endif