You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to https://registry.khronos.org/OpenGL-Refpages/gl4/html/glVertexAttribPointer.xhtml, vertex attributes that have a double precision type (double, dvec2, etc.) must be specified using glVertexAttribLPointer. However, the internal setVertexAttribPointer makes use of only glVertexAttribPointer and glVertexAttribIPointer, which means that precision will be lost even if the VertexArrayDescriptor argument specifies a Double type. In fact, I found that redefining vertex attributes to be double precision (making sure to pass in the correct type to vertexAttribPointer) makes otherwise functioning code result in black screens.
The text was updated successfully, but these errors were encountered:
According to https://registry.khronos.org/OpenGL-Refpages/gl4/html/glVertexAttribPointer.xhtml, vertex attributes that have a double precision type (
double
,dvec2
, etc.) must be specified usingglVertexAttribLPointer
. However, the internalsetVertexAttribPointer
makes use of onlyglVertexAttribPointer
andglVertexAttribIPointer
, which means that precision will be lost even if theVertexArrayDescriptor
argument specifies aDouble
type. In fact, I found that redefining vertex attributes to be double precision (making sure to pass in the correct type tovertexAttribPointer
) makes otherwise functioning code result in black screens.The text was updated successfully, but these errors were encountered: