aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_thread.rs
diff options
context:
space:
mode:
authorJonathan Schwender <55576758+jschwe@users.noreply.github.com>2024-09-02 09:00:11 +0200
committerGitHub <noreply@github.com>2024-09-02 07:00:11 +0000
commit31e84a8c484e74448c982f610abc42a8f8b7a9fb (patch)
tree5837f63a4f43d7791beae8c29fd7ccb31e7f3b71 /components/canvas/webgl_thread.rs
parentc9548d82efc5568ec66f67940b543f4709ceb152 (diff)
downloadservo-31e84a8c484e74448c982f610abc42a8f8b7a9fb.tar.gz
servo-31e84a8c484e74448c982f610abc42a8f8b7a9fb.zip
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>
Diffstat (limited to 'components/canvas/webgl_thread.rs')
-rw-r--r--components/canvas/webgl_thread.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/components/canvas/webgl_thread.rs b/components/canvas/webgl_thread.rs
index b8a4bc5582b..be9d1d48f86 100644
--- a/components/canvas/webgl_thread.rs
+++ b/components/canvas/webgl_thread.rs
@@ -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.