mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0032094: Visualization, TKOpenGl - OpenGl_VertexBuffer::bindAttribute() silently does nothing without active GLSL program
OpenGl_VertexBuffer::bindAttribute() now prints an error message indicating a possible VBO misuse.
This commit is contained in:
parent
a0073def2d
commit
4ad4054c90
@ -30,7 +30,13 @@ inline void OpenGl_VertexBuffer::bindAttribute (const Handle(OpenGl_Context)&
|
|||||||
{
|
{
|
||||||
bindFixed (theCtx, theAttribute, theNbComp, theDataType, theStride, theOffset);
|
bindFixed (theCtx, theAttribute, theNbComp, theDataType, theStride, theOffset);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
|
// OpenGL handles vertex attribute setup independently from active GLSL program,
|
||||||
|
// but OCCT historically requires program to be bound beforehand (this check could be removed in future).
|
||||||
|
Message::SendFail ("Error: OpenGl_VertexBuffer::bindAttribute() does nothing without active GLSL program");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user