Skip to main content
added 122 characters in body
Source Link

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "GL_LINE_STRIP_ADJACENCY is needed when there is a geometry shader involved ("https://www.khronos.org/opengl/wiki/Primitive#Adjacency_primitives").

Edit: Originally I meant to use "GL_LINES_ADJACENCY" and somehow got mixed up with "GL_LINE_STRIP". Don't code at 5am.

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "GL_LINE_STRIP_ADJACENCY is needed when there is a geometry shader involved ("https://www.khronos.org/opengl/wiki/Primitive#Adjacency_primitives").

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "GL_LINE_STRIP_ADJACENCY is needed when there is a geometry shader involved ("https://www.khronos.org/opengl/wiki/Primitive#Adjacency_primitives").

Edit: Originally I meant to use "GL_LINES_ADJACENCY" and somehow got mixed up with "GL_LINE_STRIP". Don't code at 5am.

added 1 character in body
Source Link

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "GL_LINE_STRIP_ADJACENCY is needed when there is ageometrya geometry shader involved ("https://www.khronos.org/opengl/wiki/Primitive#Adjacency_primitives").

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "GL_LINE_STRIP_ADJACENCY is needed when there is ageometry shader involved ("https://www.khronos.org/opengl/wiki/Primitive#Adjacency_primitives").

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "GL_LINE_STRIP_ADJACENCY is needed when there is a geometry shader involved ("https://www.khronos.org/opengl/wiki/Primitive#Adjacency_primitives").

Source Link

So as @Thomas mentioned, the issue seems to be the fact that I was passing "GL_LINE_STRIP" instead of "GL_LINE_STRIP_ADJACENCY" to the glDrawArrays() call. Apparently, "GL_LINE_STRIP_ADJACENCY is needed when there is ageometry shader involved ("https://www.khronos.org/opengl/wiki/Primitive#Adjacency_primitives").