commit
e8d1964708
|
@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- `glow` updated to `0.5`. [#2]
|
||||||
|
|
||||||
|
[#2]: https://github.com/hecrj/glow_glyph/pull/2
|
||||||
|
|
||||||
|
|
||||||
## [0.2.1] - 2020-06-27
|
## [0.2.1] - 2020-06-27
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -11,7 +11,7 @@ documentation = "https://docs.rs/glow_glyph"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glow = "0.4"
|
glow = "0.5"
|
||||||
glyph_brush = "0.7"
|
glyph_brush = "0.7"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
bytemuck = "1.2"
|
bytemuck = "1.2"
|
||||||
|
|
|
@ -54,10 +54,10 @@ impl Pipeline {
|
||||||
unsafe {
|
unsafe {
|
||||||
gl.use_program(Some(program));
|
gl.use_program(Some(program));
|
||||||
|
|
||||||
gl.uniform_1_i32(Some(sampler), 0);
|
gl.uniform_1_i32(Some(&sampler), 0);
|
||||||
|
|
||||||
gl.uniform_matrix_4_f32_slice(
|
gl.uniform_matrix_4_f32_slice(
|
||||||
Some(transform),
|
Some(&transform),
|
||||||
false,
|
false,
|
||||||
&IDENTITY_MATRIX,
|
&IDENTITY_MATRIX,
|
||||||
);
|
);
|
||||||
|
@ -90,7 +90,7 @@ impl Pipeline {
|
||||||
if self.current_transform != transform {
|
if self.current_transform != transform {
|
||||||
unsafe {
|
unsafe {
|
||||||
gl.uniform_matrix_4_f32_slice(
|
gl.uniform_matrix_4_f32_slice(
|
||||||
Some(self.transform),
|
Some(&self.transform),
|
||||||
false,
|
false,
|
||||||
&transform,
|
&transform,
|
||||||
);
|
);
|
||||||
|
|
|
@ -66,7 +66,7 @@ impl Cache {
|
||||||
|
|
||||||
gl.bind_texture(glow::TEXTURE_2D, Some(self.texture));
|
gl.bind_texture(glow::TEXTURE_2D, Some(self.texture));
|
||||||
|
|
||||||
gl.tex_sub_image_2d_u8_slice(
|
gl.tex_sub_image_2d(
|
||||||
glow::TEXTURE_2D,
|
glow::TEXTURE_2D,
|
||||||
0,
|
0,
|
||||||
i32::from(offset_x),
|
i32::from(offset_x),
|
||||||
|
@ -75,7 +75,7 @@ impl Cache {
|
||||||
i32::from(height),
|
i32::from(height),
|
||||||
glow::RED,
|
glow::RED,
|
||||||
glow::UNSIGNED_BYTE,
|
glow::UNSIGNED_BYTE,
|
||||||
Some(data),
|
glow::PixelUnpackData::Slice(data),
|
||||||
);
|
);
|
||||||
|
|
||||||
gl.bind_texture(glow::TEXTURE_2D, None);
|
gl.bind_texture(glow::TEXTURE_2D, None);
|
||||||
|
|
Loading…
Reference in New Issue