1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix some smaller issues with texture/image handling

This commit is contained in:
sfan5 2024-11-08 13:15:20 +01:00
parent 4aae31ad5e
commit 58ccf0ba82
6 changed files with 44 additions and 28 deletions

View file

@ -182,7 +182,7 @@ public:
//! Lock function.
/** Locks the Texture and returns a pointer to access the
pixels. After lock() has been called and all operations on the pixels
are done, you must call unlock().
are done, you must call unlock(). Afterwards the pointer becomes invalid.
Locks are not accumulating, hence one unlock will do for an arbitrary
number of previous locks. You should avoid locking different levels without
unlocking in between, though, because only the last level locked will be