Permalink
Browse files

Small fixes for the perface and picking examples.

  • Loading branch information...
1 parent 8ab699b commit b0a5f7ee24acf695bc4aa1c77c23eefe8e0de3a8 @vilya committed Oct 19, 2010
Showing with 0 additions and 13 deletions.
  1. +0 −10 example/perface.cpp
  2. +0 −3 example/picking.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]);
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();
}

0 comments on commit b0a5f7e

Please sign in to comment.