src/gl/axesprogram.cpp

changeset 118
8e1c9f18ae15
parent 74
6b51e7b7c459
child 215
34c6e7bc4ee1
--- a/src/gl/axesprogram.cpp	Tue Jul 27 13:23:34 2021 +0300
+++ b/src/gl/axesprogram.cpp	Tue Jul 27 16:29:00 2021 +0300
@@ -112,3 +112,8 @@
 	this->program->setAttributeBuffer(0, GL_FLOAT, offsetof(AxesVertex, position), 3, stride);
 	this->program->setAttributeBuffer(1, GL_FLOAT, offsetof(AxesVertex, color), 3, stride);
 }
+
+QOpenGLBuffer::UsagePattern AxesProgram::usagePattern() const
+{
+	return QOpenGLBuffer::StaticDraw;
+}

mercurial