Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/angle
Path: blob/main_old/src/libANGLE/CLObject.cpp
1693 views
1
//
2
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
3
// Use of this source code is governed by a BSD-style license that can be
4
// found in the LICENSE file.
5
//
6
// CLObject.cpp: Implements the cl::Object class.
7
8
#include "libANGLE/CLObject.h"
9
10
namespace cl
11
{
12
13
Object::Object() : mRefCount(1u) {}
14
15
Object::~Object()
16
{
17
if (mRefCount != 0u)
18
{
19
WARN() << "Deleted object with references";
20
}
21
}
22
23
} // namespace cl
24
25