servo / rust-webvr

UNMAINTAINED - WebVR API implementation for servo.
Mozilla Public License 2.0
106 stars 23 forks source link

No support for 32-bit applications? #25

Open Sgeo opened 6 years ago

Sgeo commented 6 years ago

Tried to compile this for stable-i686-pc-windows-msvc, and got the following error:

error[E0512]: transmute called with types of different sizes
   --> C:\Users\Sgeo\.cargo\registry\src\github.com-1ecc6299db9ec823\rust-webvr-0.9.10\src\api\openvr\display.rs:152:46
    |
152 |         self.frame_texture.handle = unsafe { mem::transmute(layer.texture_id as u64) };
    |                                              ^^^^^^^^^^^^^^
    |
    = note: source type: u64 (64 bits)
    = note: target type: *mut std::os::raw::c_void (32 bits)

error: aborting due to previous error

For more information about this error, try `rustc --explain E0512`.
error: Could not compile `rust-webvr`.

I assume that this is because I'm compiling for 32-bit.

jdm commented 5 years ago

It looks like this would build with as usize instead of as u64.