Browse Source

Merge branch 'v2' of github.com:VCVRack/Rack-private into v2

tags/v2.0.0
Andrew Belt 2 years ago
parent
commit
baebc4cf4f
2 changed files with 5 additions and 5 deletions
  1. +4
    -4
      src/engine/Engine.cpp
  2. +1
    -1
      src/window/Window.cpp

+ 4
- 4
src/engine/Engine.cpp View File

@@ -289,13 +289,13 @@ struct Engine::Internal {
}; };




static void Engine_updateExpander(Engine* that, Module* module, bool side) {
static void Engine_updateExpander_NoLock(Engine* that, Module* module, bool side) {
Module::Expander& expander = side ? module->rightExpander : module->leftExpander; Module::Expander& expander = side ? module->rightExpander : module->leftExpander;
Module* oldExpanderModule = expander.module; Module* oldExpanderModule = expander.module;


if (expander.moduleId >= 0) { if (expander.moduleId >= 0) {
if (!expander.module || expander.module->id != expander.moduleId) { if (!expander.module || expander.module->id != expander.moduleId) {
expander.module = that->getModule(expander.moduleId);
expander.module = that->getModule_NoLock(expander.moduleId);
} }
} }
else { else {
@@ -592,8 +592,8 @@ void Engine::stepBlock(int frames) {


// Update expander pointers // Update expander pointers
for (Module* module : internal->modules) { for (Module* module : internal->modules) {
Engine_updateExpander(this, module, false);
Engine_updateExpander(this, module, true);
Engine_updateExpander_NoLock(this, module, false);
Engine_updateExpander_NoLock(this, module, true);
} }


// Launch workers // Launch workers


+ 1
- 1
src/window/Window.cpp View File

@@ -750,7 +750,7 @@ void init() {
// Set up GLFW // Set up GLFW
#if defined ARCH_MAC #if defined ARCH_MAC
glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_TRUE); glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_TRUE);
glfwInitHint(GLFW_COCOA_MENUBAR, GLFW_TRUE);
glfwInitHint(GLFW_COCOA_MENUBAR, GLFW_FALSE);
#endif #endif


glfwSetErrorCallback(errorCallback); glfwSetErrorCallback(errorCallback);


Loading…
Cancel
Save