mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-12-03 16:31:04 +00:00
fix boundary bug of GLSL/GLSLXFB kernels.
This commit is contained in:
parent
0ca61278a5
commit
0178b09a38
@ -81,7 +81,7 @@ void computeStencil() {
|
|||||||
|
|
||||||
int current = int(gl_GlobalInvocationID.x) + batchStart;
|
int current = int(gl_GlobalInvocationID.x) + batchStart;
|
||||||
|
|
||||||
if (current>batchEnd) {
|
if (current>=batchEnd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ void computeStencil() {
|
|||||||
|
|
||||||
int current = gl_VertexID + batchStart;
|
int current = gl_VertexID + batchStart;
|
||||||
|
|
||||||
if (current>batchEnd) {
|
if (current>=batchEnd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user