Skip to content

Commit

Permalink
utils/GBMBufferObject: guard gbm_bo_get_modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
lrusak committed Jul 27, 2018
1 parent 21de917 commit b894d4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/utils/GBMBufferObject.cpp
Expand Up @@ -92,5 +92,9 @@ int CGBMBufferObject::GetStride()

uint64_t CGBMBufferObject::GetModifier()
{
#if defined(HAS_GBM_MODIFIERS)
return gbm_bo_get_modifier(m_bo);
#else
return 0;
#endif
}

0 comments on commit b894d4b

Please sign in to comment.