diff --git a/MobileGL/MG_Test/Program/ProgramTest.cpp b/MobileGL/MG_Test/Program/ProgramTest.cpp index 7cd95456..7df5f02a 100644 --- a/MobileGL/MG_Test/Program/ProgramTest.cpp +++ b/MobileGL/MG_Test/Program/ProgramTest.cpp @@ -8,12 +8,9 @@ using namespace MobileGL::MG_Impl::GLImpl; class ProgramTest : public ::testing::Test { protected: - ProgramTest() { - mGLContext = MakeUnique(); - MG_State::pGLContext = mGLContext.get(); + void SetUp() override { + MG_State::pGLContext = new MG_State::GLState::GLContext(); } -private: - UniquePtr mGLContext; }; TEST_F(ProgramTest, Sanity) {