File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ Bottom level categories:
40
40
41
41
## Unreleased
42
42
43
- ### v24.0.2 (2025-02-?? )
43
+ ### v24.0.2 (2025-02-26 )
44
44
45
45
#### Bug Fixes
46
+ - Fix GLES renderpass clears causing violation of ` max_color_attachments ` limit. By @adrian17 in [ #6994 ] ( https://github.com/gfx-rs/wgpu/pull/6994 ) .
46
47
- Fix a possible deadlock within ` Queue::write_texture ` . By @metamuffin in [ #7004 ] ( https://github.com/gfx-rs/wgpu/pull/7004 )
47
48
48
49
### v24.0.1 (2025-01-22)
Original file line number Diff line number Diff line change @@ -824,6 +824,7 @@ impl super::Adapter {
824
824
private_caps,
825
825
workarounds,
826
826
features,
827
+ limits : limits. clone ( ) ,
827
828
shading_language_version,
828
829
next_shader_id : Default :: default ( ) ,
829
830
program_cache : Default :: default ( ) ,
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ struct AdapterShared {
271
271
context : AdapterContext ,
272
272
private_caps : PrivateCapabilities ,
273
273
features : wgt:: Features ,
274
+ limits : wgt:: Limits ,
274
275
workarounds : Workarounds ,
275
276
shading_language_version : naga:: back:: glsl:: Version ,
276
277
next_shader_id : AtomicU32 ,
Original file line number Diff line number Diff line change @@ -1078,8 +1078,8 @@ impl super::Queue {
1078
1078
0 ,
1079
1079
)
1080
1080
} ;
1081
- for i in 0 ..crate :: MAX_COLOR_ATTACHMENTS {
1082
- let target = glow:: COLOR_ATTACHMENT0 + i as u32 ;
1081
+ for i in 0 ..self . shared . limits . max_color_attachments {
1082
+ let target = glow:: COLOR_ATTACHMENT0 + i;
1083
1083
unsafe {
1084
1084
gl. framebuffer_texture_2d (
1085
1085
glow:: DRAW_FRAMEBUFFER ,
You can’t perform that action at this time.
0 commit comments