Fix texture_setimage
Was mapping the data without unmapping the data, causing the data to become locked
This commit is contained in:
parent
6c92cf5841
commit
e4921074c1
1 changed files with 2 additions and 0 deletions
|
|
@ -811,6 +811,8 @@ void texture_setimage(texture_t tex, const void *data, uint32_t linesize,
|
|||
(uint8_t*)data + (uint32_t)y * linesize,
|
||||
row_copy);
|
||||
}
|
||||
|
||||
texture_unmap(tex);
|
||||
}
|
||||
|
||||
void cubetexture_setimage(texture_t cubetex, uint32_t side, const void *data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue