OpenSubdiv: Remove some dead code

This commit is contained in:
Sergey Sharybin 2015-08-28 12:46:23 +02:00
parent bf88428b7e
commit a560122c4b
2 changed files with 1 additions and 6 deletions

View File

@ -158,8 +158,6 @@ struct OpenSubdiv_GLMesh *openSubdiv_createOsdGLMeshFromTopologyRefiner(
bits.set(OpenSubdiv::Osd::MeshInterleaveVarying, 1);
bits.set(OpenSubdiv::Osd::MeshFVarData, 1);
bits.set(OpenSubdiv::Osd::MeshEndCapBSplineBasis, 1);
// bits.set(Osd::MeshEndCapGregoryBasis, 1);
// bits.set(Osd::MeshEndCapLegacyGregory, 1);
const int num_vertex_elements = 3;
const int num_varying_elements = 3;

View File

@ -47,7 +47,6 @@
#include <opensubdiv/osd/cpuGLVertexBuffer.h>
#include <opensubdiv/osd/cpuEvaluator.h>
//using OpenSubdiv::FarPatchTables;
using OpenSubdiv::Osd::GLMeshInterface;
extern "C" char datatoc_gpu_shader_opensubd_display_glsl[];
@ -544,13 +543,11 @@ static void perform_drawElements(GLuint program,
int num_elements,
int start_element)
{
int mode = GL_QUADS;
if (program) {
glUniform1i(glGetUniformLocation(program, "PrimitiveIdBase"),
patch_index);
}
mode = GL_LINES_ADJACENCY;
glDrawElements(mode,
glDrawElements(GL_LINES_ADJACENCY,
num_elements,
GL_UNSIGNED_INT,
(void *)(start_element * sizeof(unsigned int)));