mirror of
https://github.com/brl/mutter.git
synced 2025-07-10 20:47:19 +00:00
cogl debug: hint that all debugging paths are G_UNLIKELY
Most Cogl debugging code conditions are marked as G_UNLIKELY with the intention of having the CPU branch prediction always assume the path is disabled so having debugging support in release binaries has negligible overhead. This patch simply fixes a few cases where we weren't using G_UNLIKELY.
This commit is contained in:
@ -487,7 +487,7 @@ cogl_get_features (void)
|
||||
{
|
||||
_COGL_GET_CONTEXT (ctx, 0);
|
||||
|
||||
if (cogl_debug_flags & COGL_DEBUG_DISABLE_VBOS)
|
||||
if (G_UNLIKELY (cogl_debug_flags & COGL_DEBUG_DISABLE_VBOS))
|
||||
ctx->feature_flags &= ~COGL_FEATURE_VBOS;
|
||||
|
||||
return ctx->feature_flags;
|
||||
|
Reference in New Issue
Block a user