Browse Source

app: only import native::egl when using android

darkfi 11 months ago
parent
commit
06861f5655
1 changed files with 6 additions and 4 deletions
  1. 6 4
      bin/app/src/gfx/mod.rs

+ 6 - 4
bin/app/src/gfx/mod.rs

@@ -21,11 +21,13 @@ use darkfi_serial::{
     SerialDecodable, SerialEncodable,
     SerialDecodable, SerialEncodable,
 };
 };
 use log::debug;
 use log::debug;
+#[cfg(target_os = "android")]
+use miniquad::native::egl;
 use miniquad::{
 use miniquad::{
-    conf, native::egl, window, Backend, Bindings, BlendFactor, BlendState, BlendValue,
-    BufferLayout, BufferSource, BufferType, BufferUsage, Equation, EventHandler, KeyCode, KeyMods,
-    MouseButton, PassAction, Pipeline, PipelineParams, RenderingBackend, ShaderMeta, ShaderSource,
-    TouchPhase, UniformDesc, UniformType, VertexAttribute, VertexFormat,
+    conf, window, Backend, Bindings, BlendFactor, BlendState, BlendValue, BufferLayout,
+    BufferSource, BufferType, BufferUsage, Equation, EventHandler, KeyCode, KeyMods, MouseButton,
+    PassAction, Pipeline, PipelineParams, RenderingBackend, ShaderMeta, ShaderSource, TouchPhase,
+    UniformDesc, UniformType, VertexAttribute, VertexFormat,
 };
 };
 use parking_lot::Mutex as SyncMutex;
 use parking_lot::Mutex as SyncMutex;
 use std::{
 use std::{