Fix compiler warning
enable gl_cache_state