disable initial clear color (blue) for gl canvas on web
This commit is contained in:
@@ -52,11 +52,11 @@ extern "C"
|
|||||||
std::cout << "Failed to make WebGL context current"<< std::endl;
|
std::cout << "Failed to make WebGL context current"<< std::endl;
|
||||||
} else {
|
} else {
|
||||||
std::cout << "Made WebGL context current"<< std::endl;
|
std::cout << "Made WebGL context current"<< std::endl;
|
||||||
try {
|
// try {
|
||||||
glClearColor(0.0, 0.0, 1.0, 1.0);
|
// glClearColor(0.0, 0.0, 1.0, 1.0);
|
||||||
} catch(...) {
|
// } catch(...) {
|
||||||
std::cout << "Caught err"<< std::endl;
|
// std::cout << "Caught err"<< std::endl;
|
||||||
}
|
// }
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
}
|
}
|
||||||
std::cout << "Returning context" << std::endl;
|
std::cout << "Returning context" << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user