We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81fbf3c commit ed4b785Copy full SHA for ed4b785
v002RuttEtraPlugIn.m
@@ -849,7 +849,7 @@ - (void) createGLResourcesInContext:(CGLContextObj)cgl_ctx width:(NSUInteger)w h
849
GLuint i = 0, x, y;
850
for( y = 0; y < h - 1 ; y++)
851
{
852
- for(x = 0; x < w - 1 ; x++)
+ for(x = 0; x < w - 1 && w > 2; x++)
853
854
// this little aparatus makes sure we do not draw a line segment between different rows of scanline.
855
if (i % (w - 2) <= (w - 1))
0 commit comments