Cleanup, silence compiler warning in release build

This commit is contained in:
Sergey Sharybin 2018-03-29 12:40:23 +02:00
parent 95b9680597
commit 526719bccb
1 changed files with 2 additions and 0 deletions

View File

@ -101,10 +101,12 @@ static void drw_state_prepare_clean_for_draw(DRWManager *dst)
* where we don't re-use data by accident across different
* draw calls.
*/
#ifdef DEBUG
static void drw_state_ensure_not_reused(DRWManager *dst)
{
memset(dst, 0xff, offsetof(DRWManager, ogl_context));
}
#endif
/* -------------------------------------------------------------------- */