Skip to content

Commit

Permalink
Fix AJA not working on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Éloïse Brosseau <[email protected]>
  • Loading branch information
eloisebrosseau committed Dec 20, 2024
1 parent bc93220 commit c95ce3f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/plugins/output/AJADevices/AJAModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,17 @@ namespace AJADevices

deviceIndex++;
}

#ifdef PLATFORM_WINDOWS
GLenum error = glewInit(nullptr);
if (error != GLEW_OK)
{
std::string message = "AJA: GLEW initialization failed: ";
throw std::runtime_error(
message + reinterpret_cast<const char*>(glewGetErrorString(error))
);
}
#endif
}

void AJAModule::close()
Expand Down

0 comments on commit c95ce3f

Please sign in to comment.