mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-19 19:16:34 +00:00
Adds a sanity check on alignment.
This commit is contained in:
@@ -174,6 +174,8 @@ void ScanTarget::end_scan() {
|
||||
}
|
||||
|
||||
uint8_t *ScanTarget::begin_data(size_t required_length, size_t required_alignment) {
|
||||
assert(required_alignment);
|
||||
|
||||
if(allocation_has_failed_) return nullptr;
|
||||
if(!write_area_texture_.size()) {
|
||||
allocation_has_failed_ = true;
|
||||
|
||||
Reference in New Issue
Block a user