Issues

Issue #70 on hold

Tutorial 5 doesn't work in VS2010

Anonymous created an issue

Building tutorial 5 in VS2010 yields executables that simply produce white screens. If you resize the window the area outside the original window extent is black.

Instrumenting the display function in BaseVertexOverlap.cpp:

void display() { glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClear(GL_COLOR_BUFFER_BIT);

glUseProgram(theProgram);
std::cout << "glUseProgram\n";
glBindVertexArray(vao);
std::cout << "glBindVertexArray\n";
glUniform3f(offsetUniform, 0.0f, 0.0f, 0.0f);
glDrawElements(GL_TRIANGLES, ARRAY_COUNT(indexData), GL_UNSIGNED_SHORT, 0);
std::cout << "glDrawElements\n";
glUniform3f(offsetUniform, 0.0f, 0.0f, -1.0f);
glDrawElementsBaseVertex(GL_TRIANGLES, ARRAY_COUNT(indexData),
    GL_UNSIGNED_SHORT, 0, numberOfVertices / 2);
std::cout << "glDrawElementsBaseVertex\n";
glBindVertexArray(0);
glUseProgram(0);
std::cout << "glUnUseProgram\n";
glutSwapBuffers();
std::cout << "glutSwapBuffers\n";

}

Yields the following output on the console:

glUseProgram glBindVertexArray glDrawElements glUseProgram glBindVertexArray glDrawElements

Comments (1)

  1. Log in to comment