From db50e07be6e6cb82cac4394e224887053b2760d8 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sat, 19 Dec 2020 23:35:30 -0800 Subject: [PATCH] note about setting buffer data --- include/Refresh.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/Refresh.h b/include/Refresh.h index 4e071bf..c56f220 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -928,6 +928,11 @@ REFRESHAPI void REFRESH_SetTextureDataYUV( ); /* Sets a region of the vertex buffer with client data. + * + * NOTE: + * Calling this function on a buffer after the buffer + * has been bound by BindVertexBuffers but before + * Present has been called is an error. * * buffer: The vertex buffer to be updated. * offsetInBytes: The starting offset of the buffer to write into. @@ -945,6 +950,11 @@ REFRESHAPI void REFRESH_SetVertexBufferData( ); /* Sets a region of the index buffer with client data. + * + * NOTE: + * Calling this function on a buffer after the buffer + * has been bound by BindIndexBuffer but before + * Present has been called is an error. * * buffer: The index buffer to be updated. * offsetInBytes: The starting offset of the buffer to write into.