mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-14 17:40:26 -05:00
Address clang tidy complaints
Update Ghoul repository Update SGCT repository
This commit is contained in:
@@ -55,8 +55,6 @@ DebugRenderer::DebugRenderer(std::unique_ptr<ghoul::opengl::ProgramObject> progr
|
||||
// nothing to do
|
||||
}
|
||||
|
||||
DebugRenderer::~DebugRenderer() { }
|
||||
|
||||
const DebugRenderer& DebugRenderer::ref() {
|
||||
if (!_reference) {
|
||||
try {
|
||||
@@ -70,7 +68,7 @@ const DebugRenderer& DebugRenderer::ref() {
|
||||
}
|
||||
|
||||
void DebugRenderer::renderVertices(const Vertices& clippingSpacePoints, GLenum mode,
|
||||
const glm::vec4& rgba) const
|
||||
const glm::vec4& color) const
|
||||
{
|
||||
if (clippingSpacePoints.empty()) {
|
||||
return;
|
||||
@@ -88,7 +86,7 @@ void DebugRenderer::renderVertices(const Vertices& clippingSpacePoints, GLenum m
|
||||
|
||||
// Activate the shader program and set the uniform color within the shader
|
||||
_programObject->activate();
|
||||
_programObject->setUniform("color", rgba);
|
||||
_programObject->setUniform("color", color);
|
||||
|
||||
glBindVertexArray(_vaoID);
|
||||
glBindBuffer(GL_ARRAY_BUFFER, _vertexBufferID);
|
||||
|
||||
Reference in New Issue
Block a user