aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2016-05-23 08:48:09 +0200
committertomaka <pierre.krieger1708@gmail.com>2016-05-23 08:48:09 +0200
commite796a2e01841dcd55e1633bf4d13e993eb547876 (patch)
treef67c9d09ace81e83f6c2838569888e277aa9df32 /src/platform
parentcf02e7f1f44eebaaee939b8267b9457094d9bc6b (diff)
parente0f36b80c9bf29bbf3306a617614f6913b705a10 (diff)
downloadglutin-e796a2e01841dcd55e1633bf4d13e993eb547876.tar.gz
glutin-e796a2e01841dcd55e1633bf4d13e993eb547876.zip
Merge pull request #780 from jansegre/impl-clone-builders
Make `WindowBuilder` and `HeadlessRendererBuilder` derive `Clone`.
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/emscripten/mod.rs4
-rw-r--r--src/platform/ios/mod.rs2
-rw-r--r--src/platform/linux/api_dispatch.rs2
-rw-r--r--src/platform/linux/mod.rs2
-rw-r--r--src/platform/windows/mod.rs4
5 files changed, 7 insertions, 7 deletions
diff --git a/src/platform/emscripten/mod.rs b/src/platform/emscripten/mod.rs
index ce8d201..22cb565 100644
--- a/src/platform/emscripten/mod.rs
+++ b/src/platform/emscripten/mod.rs
@@ -58,7 +58,7 @@ impl GlContext for HeadlessContext {
unsafe impl Send for HeadlessContext {}
unsafe impl Sync for HeadlessContext {}
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificWindowBuilderAttributes;
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificHeadlessBuilderAttributes;
diff --git a/src/platform/ios/mod.rs b/src/platform/ios/mod.rs
index 2e6fbec..0b1a550 100644
--- a/src/platform/ios/mod.rs
+++ b/src/platform/ios/mod.rs
@@ -8,7 +8,7 @@ use ContextError;
pub use api::ios::*;
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificHeadlessBuilderAttributes;
pub struct HeadlessContext(i32);
diff --git a/src/platform/linux/api_dispatch.rs b/src/platform/linux/api_dispatch.rs
index 2e135e2..54e0186 100644
--- a/src/platform/linux/api_dispatch.rs
+++ b/src/platform/linux/api_dispatch.rs
@@ -22,7 +22,7 @@ use api::x11::XConnection;
use api::x11::XError;
use api::x11::XNotSupported;
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificWindowBuilderAttributes;
enum Backend {
diff --git a/src/platform/linux/mod.rs b/src/platform/linux/mod.rs
index 1865835..31a3414 100644
--- a/src/platform/linux/mod.rs
+++ b/src/platform/linux/mod.rs
@@ -15,7 +15,7 @@ pub use self::api_dispatch::{WaitEventsIterator, PollEventsIterator};
pub use self::api_dispatch::PlatformSpecificWindowBuilderAttributes;
mod api_dispatch;
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificHeadlessBuilderAttributes;
pub struct HeadlessContext(OsMesaContext);
diff --git a/src/platform/windows/mod.rs b/src/platform/windows/mod.rs
index 0c78322..f5fa6fd 100644
--- a/src/platform/windows/mod.rs
+++ b/src/platform/windows/mod.rs
@@ -51,9 +51,9 @@ lazy_static! {
};
}
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificWindowBuilderAttributes;
-#[derive(Default)]
+#[derive(Clone, Default)]
pub struct PlatformSpecificHeadlessBuilderAttributes;
/// The Win32 implementation of the main `Window` object.