diff --git a/src/engine/openspaceengine.cpp b/src/engine/openspaceengine.cpp index 8db152ce25..76fdee40c4 100644 --- a/src/engine/openspaceengine.cpp +++ b/src/engine/openspaceengine.cpp @@ -561,7 +561,7 @@ void OpenSpaceEngine::charCallback(unsigned int codepoint) { void OpenSpaceEngine::mouseButtonCallback(int key, int action) { bool isConsumed = _gui->mouseButtonCallback(key, action); - if (isConsumed) + if (isConsumed && action != SGCT_RELEASE) return; _interactionHandler.mouseButtonCallback(key, action); diff --git a/src/util/powerscaledsphere.cpp b/src/util/powerscaledsphere.cpp index bbcca78e4f..3ab86165b2 100644 --- a/src/util/powerscaledsphere.cpp +++ b/src/util/powerscaledsphere.cpp @@ -184,12 +184,6 @@ bool PowerScaledSphere::initialize() glBufferData(GL_ELEMENT_ARRAY_BUFFER, _isize * sizeof(int), _iarray, GL_STATIC_DRAW); glBindVertexArray(0); - - errorID = glGetError(); - if (errorID != GL_NO_ERROR) { - LERROR("OpenGL error: " << glewGetErrorString(errorID)); - return false; - } return true; }