qtloader.js: remove "getProcAddress" error filtering

Emscripten no longer prints an error for each getProcAddress
lookup failure and this code can be removed.

Change-Id: I082f420772677196c8eb82c49546825c750377ae
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: David Skoland <david.skoland@qt.io>
bb10
Morten Sørvig 2022-05-06 15:59:07 +02:00
parent a1092b8130
commit 50b34661fa
1 changed files with 0 additions and 6 deletions

View File

@ -386,12 +386,6 @@ function QtLoader(config)
console.log(text)
};
self.moduleConfig.printErr = self.moduleConfig.printErr || function(text) {
// Filter out OpenGL getProcAddress warnings. Qt tries to resolve
// all possible function/extension names at startup which causes
// emscripten to spam the console log with warnings.
if (text.startsWith !== undefined && text.startsWith("bad name in getProcAddress:"))
return;
if (config.stderrEnabled)
console.warn(text)
};