mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
c9548d82ef
commit
31e84a8c48
3 changed files with 6 additions and 49 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue