ohos: Enable Webgl context creation on OH 5.0 (#33257)

* ohos: Enable Webgl context creation on OH 5.0

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>

* Bump surfman to 0.9.8

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>

---------

Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
This commit is contained in:
Jonathan Schwender 2024-09-02 09:00:11 +02:00 committed by GitHub
parent c9548d82ef
commit 31e84a8c48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 49 deletions

View file

@ -477,8 +477,6 @@ impl WebGLThread {
"WebGLThread::create_webgl_context({:?}, {:?}, {:?})",
webgl_version, requested_size, attributes
);
#[cfg(target_env = "ohos")]
return Err("WebGL is not working yet on ohos".into());
// Creating a new GLContext may make the current bound context_id dirty.
// Clear it to ensure that make_current() is called in subsequent commands.