✅ Hold the ids of a Windows drawn test's textures
drawn_tests' a_decode_drawn_into_a_caches_surface_makes_no_memory_of_its_buffer makes textures 21 and 22 at resource ids its context never held, so their TEXTURE_FROM_IOSURFACE was refused (BadResourceId) before the test reached what it checks, on the Windows host where it runs (it is ignored elsewhere). It now holds its context's chunk of ids first, as the other rigs that make textures do.
This commit is contained in:
1 parent
d3fa8fe257
commit
63d7761b1a
1 file changed
+1
@@ -1380,6 +1380,7 @@ mod drawn_tests {
|
||||
let draw = Arc::new(PlaneDraw::new(None).expect("the plane draws"));
|
||||
for whole in [true, false] {
|
||||
let mut r = cached();
|
||||
r.dec.hold_resource_ids(0, 1);
|
||||
let page = r.page;
|
||||
assert_eq!(r.buffer(10, BLOCK, 2 * page), Ok(()));
|
||||
// Textures 21 and 22 over buffer 10, each over its plane of [`PLANES`], as a decode's
|
||||
|
||||
Reference in new issue
Block a user