From 60f6e9adafb491012b053d07b37371aef04aa8a4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 4 Oct 2015 17:31:18 +0200 Subject: [PATCH] Fix a warning. --- glwidget.cpp | 4 ++-- glwidget.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/glwidget.cpp b/glwidget.cpp index 8ccba20..17f7832 100644 --- a/glwidget.cpp +++ b/glwidget.cpp @@ -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. diff --git a/glwidget.h b/glwidget.h index 0d74480..d2ff50c 100644 --- a/glwidget.h +++ b/glwidget.h @@ -22,7 +22,7 @@ protected: private: movit::ResourcePool *resource_pool; GLuint vao, program_num; - + GLuint position_vbo, texcoord_vbo; }; #endif -- 2.39.5