matdbg: call GLSLTools init / shutdown.

This commit is contained in:
Philip Rideout
2021-07-20 14:47:18 -07:00
committed by Mathias Agopian
parent 15db005dc6
commit fd444b2fd0

View File

@@ -36,6 +36,8 @@
#include <backend/DriverEnums.h>
#include "sca/GLSLTools.h"
#include <sstream>
#include <string>
@@ -514,9 +516,11 @@ DebugServer::DebugServer(Backend backend, int port) : mBackend(backend) {
mServer->addWebSocketHandler("", mWebSocketHandler);
slog.i << "DebugServer listening at http://localhost:" << port << io::endl;
filamat::GLSLTools::init();
}
DebugServer::~DebugServer() {
filamat::GLSLTools::shutdown();
for (auto& pair : mMaterialRecords) {
delete [] pair.second.package;
}