disable initial clear color (blue) for gl canvas on web

This commit is contained in:
Nick Fisher
2025-05-28 10:47:44 +08:00
parent d298b0d091
commit 5db9fe2c9e

View File

@@ -52,11 +52,11 @@ extern "C"
std::cout << "Failed to make WebGL context current"<< std::endl;
} else {
std::cout << "Made WebGL context current"<< std::endl;
try {
glClearColor(0.0, 0.0, 1.0, 1.0);
} catch(...) {
std::cout << "Caught err"<< std::endl;
}
// try {
// glClearColor(0.0, 0.0, 1.0, 1.0);
// } catch(...) {
// std::cout << "Caught err"<< std::endl;
// }
glClear(GL_COLOR_BUFFER_BIT);
}
std::cout << "Returning context" << std::endl;