mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 05:08:31 +09:00
[Fix] (MG_Test/Program): Free context at teardown
This commit is contained in:
@@ -11,6 +11,10 @@ protected:
|
|||||||
void SetUp() override {
|
void SetUp() override {
|
||||||
MG_State::pGLContext = new MG_State::GLState::GLContext();
|
MG_State::pGLContext = new MG_State::GLState::GLContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TearDown() override {
|
||||||
|
delete MG_State::pGLContext;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST_F(ProgramTest, Sanity) {
|
TEST_F(ProgramTest, Sanity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user