diff --git a/examples/simpleCpu/main.cpp b/examples/simpleCpu/main.cpp index c06d4958..54e90e13 100644 --- a/examples/simpleCpu/main.cpp +++ b/examples/simpleCpu/main.cpp @@ -39,8 +39,8 @@ setGLCoreProfile() glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); #if not defined(__APPLE__) - glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 4); - glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2); + glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3); + glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 3); glfwOpenWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); #else glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3); diff --git a/examples/simpleCpu/simpleCpuSubdivision.cpp b/examples/simpleCpu/simpleCpuSubdivision.cpp index 3620fbb3..11162911 100644 --- a/examples/simpleCpu/simpleCpuSubdivision.cpp +++ b/examples/simpleCpu/simpleCpuSubdivision.cpp @@ -150,8 +150,8 @@ a particular purpose and non-infringement. // The screen width & height; current frame for animation; and the desired // subdivision level. // -int g_width = 0, - g_height = 0, +int g_width = 1024, + g_height = 1024, g_frame = 0, g_level = 4; @@ -468,7 +468,7 @@ updateGeom() // // Send the animated coarse positions and normals to the vertex buffer. // - std::cout << vertex.size() << " - " << nverts << std::endl; + //std::cout << vertex.size() << " - " << nverts << std::endl; g_vertexBuffer->UpdateData(&vertex[0], 0, nverts); // diff --git a/examples/simpleCpu/simpleCpuSubdivision_org.cpp b/examples/simpleCpu/simpleCpuSubdivision_org.cpp index f0ae620c..cd2dc9e5 100644 --- a/examples/simpleCpu/simpleCpuSubdivision_org.cpp +++ b/examples/simpleCpu/simpleCpuSubdivision_org.cpp @@ -146,8 +146,8 @@ a particular purpose and non-infringement. // The screen width & height; current frame for animation; and the desired // subdivision level. // -int g_width = 0, - g_height = 0, +int g_width = 1024, + g_height = 1024, g_frame = 0, g_level = 4; @@ -176,7 +176,6 @@ std::vector g_orgPositions, // defined. // void idle(); -void reshape(int width, int height); void createOsdMesh(int level, int kernel); void display(); void updateGeom();