From 0178b09a38b2ddedbea9d96dd8727171d94f23d0 Mon Sep 17 00:00:00 2001 From: Takahito Tejima Date: Mon, 12 Jan 2015 17:02:54 -0800 Subject: [PATCH] fix boundary bug of GLSL/GLSLXFB kernels. --- opensubdiv/osd/glslComputeKernel.glsl | 2 +- opensubdiv/osd/glslTransformFeedbackKernel.glsl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opensubdiv/osd/glslComputeKernel.glsl b/opensubdiv/osd/glslComputeKernel.glsl index 5ba1a266..bf986e73 100644 --- a/opensubdiv/osd/glslComputeKernel.glsl +++ b/opensubdiv/osd/glslComputeKernel.glsl @@ -81,7 +81,7 @@ void computeStencil() { int current = int(gl_GlobalInvocationID.x) + batchStart; - if (current>batchEnd) { + if (current>=batchEnd) { return; } diff --git a/opensubdiv/osd/glslTransformFeedbackKernel.glsl b/opensubdiv/osd/glslTransformFeedbackKernel.glsl index 3aa619ed..4f2521fd 100644 --- a/opensubdiv/osd/glslTransformFeedbackKernel.glsl +++ b/opensubdiv/osd/glslTransformFeedbackKernel.glsl @@ -86,7 +86,7 @@ void computeStencil() { int current = gl_VertexID + batchStart; - if (current>batchEnd) { + if (current>=batchEnd) { return; }