mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Fix order of arguments to glPolygonOffset. (#3783)
This commit is contained in:
parent
3563849585
commit
c91a660ec5
@ -56,6 +56,8 @@ Bottom level categories:
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
- Fix order of arguments to glPolygonOffset by @komadori in [#3783](https://github.com/gfx-rs/wgpu/pull/3783).
|
||||||
|
|
||||||
#### General
|
#### General
|
||||||
|
|
||||||
- Fix crash on dropping `wgpu::CommandBuffer`. By @wumpf in [#3726](https://github.com/gfx-rs/wgpu/pull/3726).
|
- Fix crash on dropping `wgpu::CommandBuffer`. By @wumpf in [#3726](https://github.com/gfx-rs/wgpu/pull/3726).
|
||||||
|
|||||||
@ -1186,7 +1186,7 @@ impl super::Queue {
|
|||||||
C::SetDepthBias(bias) => {
|
C::SetDepthBias(bias) => {
|
||||||
if bias.is_enabled() {
|
if bias.is_enabled() {
|
||||||
unsafe { gl.enable(glow::POLYGON_OFFSET_FILL) };
|
unsafe { gl.enable(glow::POLYGON_OFFSET_FILL) };
|
||||||
unsafe { gl.polygon_offset(bias.constant as f32, bias.slope_scale) };
|
unsafe { gl.polygon_offset(bias.slope_scale, bias.constant as f32) };
|
||||||
} else {
|
} else {
|
||||||
unsafe { gl.disable(glow::POLYGON_OFFSET_FILL) };
|
unsafe { gl.disable(glow::POLYGON_OFFSET_FILL) };
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user