Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small fixes for the perface and picking examples.

  • Loading branch information...
commit b0a5f7ee24acf695bc4aa1c77c23eefe8e0de3a8 1 parent 8ab699b
Vilya Harvey authored
Showing with 0 additions and 13 deletions.
  1. +0 −10 example/perface.cpp
  2. +0 −3  example/picking.cpp
10 example/perface.cpp
View
@@ -60,11 +60,6 @@ void PerFaceRenderer::setup()
{
glEnable(GL_DEPTH_TEST);
- GLint vp[4];
- glGetIntegerv(GL_VIEWPORT, vp);
- unsigned int width = vp[2];
- unsigned int height = vp[3];
-
// Load and link the shaders.
GLuint vertexShader = vgl::loadShader(GL_VERTEX_SHADER, kVertexShader);
GLuint geometryShader = vgl::loadShader(GL_GEOMETRY_SHADER_EXT, kGeometryShader);
@@ -92,11 +87,6 @@ void PerFaceRenderer::setup()
void PerFaceRenderer::render()
{
- GLint vp[4];
- glGetIntegerv(GL_VIEWPORT, vp);
- unsigned int width = vp[2];
- unsigned int height = vp[3];
-
glUseProgram(_prog);
glBindBuffer(GL_ARRAY_BUFFER, _buffers[0]);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _buffers[1]);
3  example/picking.cpp
View
@@ -165,8 +165,6 @@ void PickingRenderer::render()
unsigned int width = vp[2];
unsigned int height = vp[3];
- fprintf(stderr, "width = %u, height = %u\n", width, height);
-
unsigned int newBufSize = width * height * 3;
if (newBufSize != _pickData.size()) {
_pickData.resize(newBufSize);
@@ -475,7 +473,6 @@ void PickingViewer::actionHandler(int action)
int main(int argc, char** argv)
{
- PickingRenderer renderer;
PickingViewer viewer;
viewer.run();
}
Please sign in to comment.
Something went wrong with that request. Please try again.