Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: clarify pointer lifetimes for ktxTexture_SetImageFromMemory #917

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/writer1.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ ktxTexture1_SetImageFromStdioStream(ktxTexture1* This, ktx_uint32_t level,
*
* @warning Do not use @c memcpy for this as it will not pad when necessary.
*
* @note The caller is responsible for freeing the original image memory
* referred to by @p src.
*
* @param[in] This pointer to the target ktxTexture object.
* @param[in] level mip level of the image to set.
* @param[in] layer array layer of the image to set.
Expand Down
3 changes: 3 additions & 0 deletions lib/writer2.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ ktxTexture2_SetImageFromStdioStream(ktxTexture2* This, ktx_uint32_t level,
* Level, layer, faceSlice rather than offset are specified to enable some
* validation.
*
* @note The caller is responsible for freeing the original image memory
* referred to by @p src.
*
* @param[in] This pointer to the target ktxTexture object.
* @param[in] level mip level of the image to set.
* @param[in] layer array layer of the image to set.
Expand Down
Loading