Skip to content

Commit cbfa992

Browse files
Update glow to 0.16
1 parent a50d77c commit cbfa992

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This project adheres to Semantic Versioning.
2020
* **Breaking:** Updated `rodio` to 0.20.
2121
* **Breaking:** Updated `image` to 0.25.
2222
* Updated `sdl2` to 0.37.
23-
* Updated `glow` to 0.15.
23+
* Updated `glow` to 0.16.
2424
* Updated `hashbrown` to 0.15.
2525

2626
## [0.8.0] - 2023-03-17

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["game-engines"]
1414
[dependencies]
1515
sdl2 = "0.37.0"
1616
rodio = { version = "0.20.1", optional = true, default-features = false }
17-
glow = "0.15.0"
17+
glow = "0.16.0"
1818
image = { version = "0.25.0", default-features = false }
1919
vek = { version = "0.17.0", default-features = false }
2020
hashbrown = "0.15.1"

src/platform/device_gl.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ impl GraphicsDevice {
676676
0,
677677
format.to_gl_format(),
678678
format.to_gl_data_type(),
679-
None,
679+
PixelUnpackData::Slice(None),
680680
);
681681

682682
if let Some(e) = self.get_error() {
@@ -731,7 +731,7 @@ impl GraphicsDevice {
731731
height,
732732
texture.format.to_gl_format(),
733733
texture.format.to_gl_data_type(),
734-
PixelUnpackData::Slice(data),
734+
PixelUnpackData::Slice(Some(data)),
735735
);
736736

737737
// Revert back to a sensible default.
@@ -755,7 +755,7 @@ impl GraphicsDevice {
755755
0,
756756
texture.format.to_gl_format(),
757757
texture.format.to_gl_data_type(),
758-
PixelPackData::Slice(&mut buffer),
758+
PixelPackData::Slice(Some(&mut buffer)),
759759
);
760760
}
761761

0 commit comments

Comments
 (0)