diff --git a/src/plugins/output/AJADevices/AJAModule.cpp b/src/plugins/output/AJADevices/AJAModule.cpp index 55663b48..230aae3a 100644 --- a/src/plugins/output/AJADevices/AJAModule.cpp +++ b/src/plugins/output/AJADevices/AJAModule.cpp @@ -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(glewGetErrorString(error)) + ); + } +#endif } void AJAModule::close()