mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Fix infinite recursion in Image ctor
This commit is contained in:
parent
23505d31b1
commit
9e17f1334c
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ use stb_image = stb_image::Image;
|
|||
type Image = stb_image::Image;
|
||||
|
||||
fn Image(width: uint, height: uint, depth: uint, +data: ~[u8]) -> Image {
|
||||
Image(width, height, depth, data)
|
||||
stb_image::new_image(width, height, depth, data)
|
||||
}
|
||||
|
||||
const TEST_IMAGE: [u8 * 4962] = #include_bin("test.jpeg");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue